I was crazy to deal with this problem ..
for examples:
calculating the highest value on the 20 consequtive bars in the range from the 4th to the 23rd index inclusive on the current chart
IN MT4 is very simple just like this
val=High[iHighest(NULL,0,MODE_HIGH,20,4)];
But ninja can't do this ,

Max() only get value ,can't index
HighestBar() only from CurrentBar ,can't from 4th Bar ago...

Comment