polyline
Properties
all
Type: series array<polyline>
Returns an array filled with all the current polylines drawn by the script.
Functions
new
pine
polyline.new(
series array<chart.point> points,
series bool curved = false,
series bool closed = false,
series string xloc = xloc.bar_index,
series color line_color = color.blue,
series color fill_color = na,
series string line_style = line.style_solid,
series int line_width = 1,
series bool force_overlay = false
) → series polylineCreates a new polyline instance and displays it on the chart, sequentially connecting all of the points in the points array with line segments.
The segments in the drawing can be straight or curved depending on the curved parameter.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
points | series array<chart.point> | ||
curved | series bool | false | |
closed | series bool | false | |
xloc | series string | xloc.bar_index | |
line_color | series color | color.blue | |
fill_color | series color | na | |
line_style | series string | line.style_solid | |
line_width | series int | 1 | |
force_overlay | series bool | false |
Returns: series polyline
Methods
delete
pine
polyline.delete(series polyline id)Deletes the specified polyline from the chart.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
id | series polyline |