Download MetaTrader 5

Divergence.

To add comments, please log in or register
Have you installed MetaTrader 5? Find out more about it!
ForexTrader17
1041
ForexTrader17 2015.06.17 21:17 

Is it possible to compare the last indicator value with values prior to it? Like say RSI of last bar is greater than RSI of any of last 10 bars before it or RSI of last bar is greater then RSI of highest high of last 10 bars.

Thanks. 

Alain Verleyen
Moderator
30752
Alain Verleyen 2015.06.18 07:05  
Eric1704:

Is it possible to compare the last indicator value with values prior to it? Like say RSI of last bar is greater than RSI of any of last 10 bars before it or RSI of last bar is greater then RSI of highest high of last 10 bars.

Thanks. 

Of course it's possible. Use iRSI() with the index of the candle you need the value.
whroeder1
14532
whroeder1 2015.06.18 12:06  
Eric1704: Is it possible to compare the last indicator value with values prior to it?
What is the last parameter to every indicator function and iCustom?
To add comments, please log in or register