high and low in specified timeframe - how to determine?

 

hi,

i´d like to readout the high and low of the last 5 hours of the active chartwindow.

in which way could this be done?

 
Use iHighest & iLowest and then High[] & Low[] or iHigh() & iLow()
 
taifun:
i´d like to readout the high and low of the last 5 hours of the active chartwindow.

You'll also have to define what you mean by 5 hours, such as the first hour after the weekend. Do you mean 5 hours on H1 chart or smaller to the nearest bar. or 5 hours to the nearest minute.
 

got it to work! thanks!