A function directly compute highest value of several bars?

 

Hi Pros,

Seems the ihigh[] could only give a high value of one bar. Is there a function directly gives highest value of 30 bars?

Thanks a lot!

 

try

      double highestLast30 = High[iHighest(NULL, 0, MODE_HIGH, 30, 0)];
Reason: