dayofweek
The day of the week of the bar being evaluated. The contract gives the type and not the numbering, so confirm which number means which day before you compare against a literal.
dayofweek(series int time, series string timezone) → series int| Parameter | Type | Required |
|---|---|---|
time | series int | yes |
timezone | series string | yes |
Returns series int — A series int.
indicator("Day of the week")
plot(dayofweek(time, syminfo.timezone))See also sessions and intervals
Part of the function index.
Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.