Lipi Reference
Lipi

Variables

bar_index

The index of the bar being evaluated. It is an int series rather than a float, and it changes bar by bar as a price does.

Example


          //@lipi=2
indicator("Bar Index Example", overlay=true)
plot(bar_index, color=color.blue)
        

Type

series int