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.

Example
morning = hour in 8..11
strategyindicatoralertlibrarysince 1.0

minute→ int#

Minute of the bar time.

Example
on_the_hour = minute == 0
strategyindicatoralertlibrarysince 1.0

day_of_week→ int#

1 Monday to 7 Sunday.

Example
friday = day_of_week == 5
strategyindicatoralertlibrarysince 1.0

time_of_day→ time#

Clock time of the bar, for windows such as time_of_day between 08:00 and 09:00.

Example
first_hour = time_of_day between 08:00 and 09:00
strategyindicatoralertlibrarysince 1.0

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account