linefill
Properties
all
Type: series array<linefill>
Returns an array filled with all the current linefills drawn by the script.
Functions
new
pine
linefill.new(
series line line1,
series line line2,
series color 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
Methods
delete
pine
linefill.delete(series linefill id)Deletes the specified linefill from the chart.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series linefill |
get_line1
pine
linefill.get_line1(series linefill id) → series lineReturns the first line of the linefill.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series linefill |
Returns: series line
get_line2
pine
linefill.get_line2(series linefill id) → series lineReturns the second line of the linefill.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series linefill |
Returns: series line
set_color
pine
linefill.set_color(series linefill id, series color color)Sets the color of the linefill.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series linefill | ||
color | series color |