linefill.new() - Pine Script Function
linefill.new()
Section titled “linefill.new()”Overview
Section titled “Overview”Creates a new linefill object and displays it on the chart, filling the space between line1 and line2 with the color specified in color.
Syntax
Section titled “Syntax”linefill.new(line1, line2, color) → series linefillParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| line1 | series line | First line object. |
Returns
Section titled “Returns”The ID of a linefill object that can be passed to other linefill.*() functions.
Remarks
Section titled “Remarks”- 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.