Need Coding Help

 

I'm trying to find the syntax to determine the highest high in the last 5 bars... or the max high in the last 5 bars.

In tradestation it would be highest(high,5).

Can anyone tell me what the syntax would be in MQL4?

 

val=High[iHighest(NULL,0,MODE_HIGH,5,0)];


 
kennyhubbard wrote >>

val=High[iHighest(NULL,0,MODE_HIGH,5,0)];



Thanks a million!
Reason: