Time variables reference
All 4 time variables in AlgoBarsX, each with its parameters, defaults, ranges and an example: hour, minute, day_of_week, time_of_day.
hour minute day_of_week time_of_day
hour→ int#
Hour of the bar time, 0 to 23, in UTC or the configured time zone.
morning = hour in 8..11strategyindicatoralertlibrarysince 1.0
day_of_week→ int#
1 Monday to 7 Sunday.
friday = day_of_week == 5strategyindicatoralertlibrarysince 1.0
time_of_day→ time#
Clock time of the bar, for windows such as time_of_day between 08:00 and 09:00.
first_hour = time_of_day between 08:00 and 09:00strategyindicatoralertlibrarysince 1.0