Wipes a polyline, stroke and fill, from the chart.
The path and any fill disappear. Deleting a polyline that is already gone, or na, does nothing.
Delete the previous polyline before drawing its replacement to redraw a path on each update.
Syntax
polyline.delete(id: series polyline) -> void
polyline.delete() -> voidArguments
| Name | Type | Default | Description |
|---|---|---|---|
| id | series polyline | required | The polyline to remove, fill included. na is accepted and nothing happens. |
Returns
Nothing.
Example
//@version=6
indicator("polyline.delete: redraw", overlay = true)
var polyline pl_ = na
if barstate.islast
polyline.delete(pl_)
pl_ := polyline.new(array.from(chart.point.from_index(bar_index - 10, low), chart.point.now(high)))See also
Runs on Sidechair