Since you have a condition, why not open trade at time 4.01am? And close trade when candle H4 close.