Functions
dayofweek()
Calculates the day number of the week, in a specified time zone, from a UNIX timestamp.
Syntax
dayofweek(series int time, series string timezone) → series int
Arguments
time required series int timezone required series string Return Type
series int Example
indicator("Day of Week Example", overlay=true)
// Get current bar day of week
currentDay = dayofweek(time)
// Plot day in Data Window
plot(currentDay, title="Current Day")