Look in the log for timestamps, not chart (of daily? bars). If you indeed use daily bars, how/why would you "trigger something" based on hour()? Look in the manual for hour() (and 1 line beneath).