LineFill
Handle for a linefill between two lines.
Static Methods
new
navi
LineFill.new(
line1: series Line,
line2: series Line,
color: series Color
): series LineFillCreates a new linefill object and displays it on the chart, filling the space between line1 and line2 with the color specified in color.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
line1 | series Line | ||
line2 | series Line | ||
color | series Color |
Returns: series LineFill
Static Properties
all
Returns an array filled with all the current linefills drawn by the script.
Methods
delete
navi
LineFill.delete(id: series LineFill)Deletes the specified linefill from the chart.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series LineFill |
get_line1
navi
LineFill.get_line1(id: series LineFill): series LineReturns the first line of the linefill.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series LineFill |
Returns: series Line
get_line2
navi
LineFill.get_line2(id: series LineFill): series LineReturns the second line of the linefill.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series LineFill |
Returns: series Line
set_color
navi
LineFill.set_color(id: series LineFill, color: series Color)Sets the color of the linefill.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series LineFill | ||
color | series Color |

