iHighest problem.

 
Hello!

I have this code,but it's not work.
val=iHighest(NULL,0,MODE_HIGH,Bars-point,point)
(the point is a Bars number point<Bars)
I would see the maximum in a range (point to current bar);
I know iHighest give me only the bar number of highest bar.But this code not work for me.


Thanks for help.
 

High[iHighest(0,PERIOD_H1,MODE_HIGH,15,2)];


eg: Bars-point=15,point=2

 
Thanks It's Works great!
 

What if i would like to see on a 1 hour graph the high & low of the last 10 days (all 24 hourly bars will show the same value)?


thanks

Reason: