Lists every shaded band currently on the chart, one linefill per pair of lines.
Loop over it to recolor or delete fills in bulk, including fills whose variables are out of scope. Each item pairs with two lines, reachable through linefill.get_line1() and linefill.get_line2().
Removing an item from the array does not remove the fill from the chart, and a fill leaves the list when either of its lines is deleted.
Type
array<linefill>
Example
//@version=6
indicator("linefill.all: slope tint", overlay = true)
if barstate.islast
linefill.new(line.new(bar_index - 20, high[20], bar_index, high), line.new(bar_index - 20, low[20], bar_index, low), color.gray)
for f in linefill.all
up = line.get_y2(linefill.get_line1(f)) > line.get_y1(linefill.get_line1(f))
linefill.set_color(f, up ? color.new(color.green, 85) : color.new(color.red, 85))See also
Runs on Sidechair