Lipi Reference
Lipi

Variables

chart.is_standard

True when the chart type is a standard chart type (candles, bars, line or area). Charts built from synthetic bars do not show the instrument's real open, high, low and close, so a script can use this to warn the reader or to adjust its calculations.

Example


          //@lipi=2
indicator("chart.is_standard Example", overlay=true)
if barstate.islast {
    label.new(bar_index, high, text=chart.is_standard ? "standard chart" : "Another chart type")
}
        

Type

simple bool