Find high and low between certain times

 

How do you find the last high and low between certain times?

For example every morning at 0700 GMT, I want to find the high and the low between 2200 the day before and 0659 and display it.

I know the time I will be running the code so could count candle but I'd prefer exact times.


if i use

val=High[iHighest(NULL,0,MODE_HIGH,20,4)]

Would I use 0 for the current candle and -10 to get 10 candles back?

This counts back more than 10 candles:

val=High[iHighest(NULL,PERIOD_H1,MODE_HIGH,10,0)];
Reason: