Today bar on 1H graphs

 

Hi, I have for instance this entry condition for 1H graphs.

Bid > High[5]

I need to check if High[5] is formed on a today hourly bar. I don’t want to consider High[5] if it is a yesterday bar.

How can I check this?

Thank you!

 

AJ

perhaps something like this?

if (Hour()<4) return(0); // silently do nothing if too early in the day
-BB-
 
Thank you, I seem it works!
Reason: