Lipi Reference
Lipi

Variables

linefill.all

Array of all currently existing linefill drawings, from oldest to newest. A second fill on the same ordered line pair replaces the previous one, so this array never holds two fills for the same pair.

Example


          //@lipi=2
indicator("linefill.all Example", overlay=true)
if barstate.islast {
    l1 = line.new(bar_index[10], high[10], bar_index, high)
    l2 = line.new(bar_index[10], low[10], bar_index, low)
    linefill.new(l1, l2, color.new(color.teal, 0.7))
}
plot(array.length(linefill.all), title="Linefill Count")
        

Type

series array<linefill>