Skip to content
Algo Trade Analytics Docs

linefill.new() - Pine Script Function

Creates a new linefill object and displays it on the chart, filling the space between line1 and line2 with the color specified in color.

linefill.new(line1, line2, color) → series linefill
NameTypeDescription
line1series lineFirst line object.

The ID of a linefill object that can be passed to other linefill.*() functions.

  • If any line of the two is deleted, the linefill object is also deleted. If the lines are moved (e.g. via line.set_xy functions), the linefill object is also moved.