Drawing / Reference
alerta.polyline.set_points
TradingView-compatible spelling: polyline.set_points, runs without warnings
Pine v6: replaces the polyline's point array with a new array<chart.point>.
alerta.polyline.set_points(id, points) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | polyline | Yes | — | Polyline handle. |
points | array<chart.point> | Yes | — | New point array. |
Returns
voidExample
alerta.polyline.set_points
indicator("polyline.set_points", overlay=true)if barstate.islast points = array.from(chart.point.from_time(time[8], close[8]), chart.point.from_time(time[4], close[4]), chart.point.from_time(time[1], close[1])) p = polyline.new(points, xloc=xloc.bar_time) polyline.set_points(p, array.from(chart.point.from_time(time[6], close[6]), chart.point.from_time(time[3], close[3]), chart.point.from_time(time[0], close[0])))Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.