Skip to content

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 linefill

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

Parameters

NameTypeDefaultDescription
line1series line
line2series line
colorseries color

Returns: series linefill

Methods

delete

pine
linefill.delete(series linefill id)

Deletes the specified linefill from the chart.

Parameters

NameTypeDefaultDescription
idseries linefill

get_line1

pine
linefill.get_line1(series linefill id) → series line

Returns the first line of the linefill.

Parameters

NameTypeDefaultDescription
idseries linefill

Returns: series line


get_line2

pine
linefill.get_line2(series linefill id) → series line

Returns the second line of the linefill.

Parameters

NameTypeDefaultDescription
idseries linefill

Returns: series line


set_color

pine
linefill.set_color(series linefill id, series color color)

Sets the color of the linefill.

Parameters

NameTypeDefaultDescription
idseries linefill
colorseries color

基于 MIT 许可证发布。