Download MetaTrader 5

How can I find the 2 last iHighest.

To add comments, please log in or register
Publish programs in Code Base. Improve your rating!
Jose Martin
142
Jose Martin 2014.01.01 22:43 
How can I find the highest candle and the second one in a determined number of candles. Using the iHighest function. Or another one if needed! Thank You
Alain Verleyen
Moderator
30752
Alain Verleyen 2014.01.01 23:14  
MartinTaur:
How can I find the highest candle and the second one in a determined number of candles. Using the iHighest function. Or another one if needed! Thank You

There is no "iHighest" function in mql5.

You can use CopyHigh() to get an array of candle's high values and then ArraySort().

Jose Martin
142
Jose Martin 2014.01.02 00:26  
I am sorry I get confused, I thought it was the mql4 forum. I am going to ask the question in the correct one! Thank you 
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2014.01.02 00:43  
MartinTaur:
I am sorry I get confused, I thought it was the mql4 forum. I am going to ask the question in the correct one! Thank you 
https://www.mql5.com/en/forum/147733
Find Last 2 iHighest - MQL4 forum
  • www.mql5.com
Find Last 2 iHighest - MQL4 forum
Jose Martin
142
Jose Martin 2014.01.02 00:53  
Thank you. I will try that!
To add comments, please log in or register