Lipi Reference
Lipi

Variables

barstate.isconfirmed

Returns true if the current bar is confirmed (closed). On historical bars this is always true. On the real-time bar this is false until the bar closes.

Example


          //@lipi=2
indicator("BarState.isconfirmed Example", overlay=true)
bgcolor(barstate.isconfirmed ? color.green : na)
        

Type

series bool