Friends, I need the difference of values between two or three rsi values in mt4

 

Hi

I have no idea on programming. Can anyone pls help me to customize an indicate which gives the difference in values between two or three rsi values.

For example, If latest RSI value is 46 and the previous candle's RSI value is 13, I need the value as 33 (diff between two rsi values). Also, The same difference with second previous candle.

Can anyone help me out pls.....

Regards

Shah.

 
CurrentRSI  = iRSI(NULL,0,14,PRICE_CLOSE,0);
PreviousRSI = iRSI(NULL,0,14,PRICE_CLOSE,1);

Diff = CurrentRSI - PreviousRSI;

Print("Diff is: ", Diff);
Reason: