Lipi Reference Lipi

Variables

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.

Example


          indicator("Day of Week Example", overlay=true)
// Get the current day of the week
current_day = dayofweek
// Plot the numeric value of the day of the week
plot(current_day, title="Day of Week", color=color.blue)
        

Type

series int