Lipi Reference
Lipi

Variables

chart.bg_color

The background colour of the chart the script is drawn on, as set by the reader.

Example


          //@lipi=2
indicator("chart.bg_color Example", overlay=true)
if barstate.islast {
    // A label that blends in with the chart background, with contrasting text
    label.new(bar_index, high, text="Close", color=chart.bg_color, textcolor=chart.fg_color)
}
        

Type

input color