Lipi Reference
Lipi

Functions

linefill.delete()

Deletes a linefill. Does not delete the two lines it was attached to. Deleting either line also deletes attached fills.

Syntax

                linefill.delete(series linefill id) → void
              

Arguments

id required series linefill Linefill object to delete.

Return Type

void

Example


          //@lipi=2
indicator("linefill.delete 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)
    f = linefill.new(l1, l2, color.new(color.blue, 0.7))
    linefill.delete(f)
}