How can I find the 2 last iHighest.

 
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
 
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().

 
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 
 
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
 
Thank you. I will try that!
Reason: