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 |