Find the time of previous day's high - page 2

 

int Yshift = iHighest("EURUSD", PERIOD_H1, MODE_HIGH, Ystart + 24, Ystart);
         int Yhr = 24 - Yshift + TimeHour(TimeCurrent());//OUT

This assumes that there are 24 H1 bars. Does not account for the weekend or holidays. There may be no bar corresponding 24 hours ago. www.mbchief.comIt also doesn't account for Sunday being a short day for all brokers not running UTC+2.
Reason: