Variables
bar_index
Current bar index. Numbering is zero-based, index of the first bar is 0.
Example
indicator("Bar Index Example", overlay=true)
plot(bar_index, color=color.blue)
Type
series int Variables
Current bar index. Numbering is zero-based, index of the first bar is 0.
indicator("Bar Index Example", overlay=true)
plot(bar_index, color=color.blue)
series int