Lipi Reference
Lipi

Types

linefill

A colored fill between two line drawings. The fill follows the current geometry of those lines. Only one fill may exist for a given ordered pair of lines; a later linefill.new on the same pair replaces the previous fill.

Example


          //@lipi=2
indicator("Linefill Type Example", overlay=true)
if barstate.islast {
    l1 = line.new(bar_index[10], high[10], bar_index, high, color=color.green)
    l2 = line.new(bar_index[10], low[10], bar_index, low, color=color.red)
    linefill.new(l1, l2, color.new(color.blue, 0.7))
}