Lipi Reference Lipi

Variables

barstate.isrealtime

Returns true if current bar is a real-time bar, false otherwise.

Example


          indicator("BarState.isrealtime Background Example", overlay=true)
// Change background color if the bar is real-time
bgcolor(barstate.isrealtime ? color.red : na)
        

Type

series bool