Simple RSI comparison indicator

 

Hi Coders,

This forum is amazing seeing fellow forexers help each other out. I was wondering if a skilled coder can write something simple:

Compare RSI values of 2 currency pairs in real time.

Changable inputs for the script:

------------------------------

The 2 currency pairs being compared

Time frame used

Alert when a certain value is obtained

--------------------------------

The output number for this value should be based on this formula:

RSI(Pair1) + RSI(Pair2) - 100

For example, the trader inputs:

------------------

EUR/USD

USD/JPY

15M time-frame

RSI VALUES desired: 20 or -20

------------------

So when RSI value for EUR/USD + RSI Value for USD/JPY - 100 reaches 20 or -20, an alert pops up.

I'm testing a theory based on correlation. Any help would be greatly appreciated.

Thanks in advance.

Kasio

Reason: