Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.polyline.set_points
On this pageSignatureParametersReturnsExample

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) → void

Parameters

NameTypeRequiredDefaultDescription
idpolylineYes—Polyline handle.
pointsarray<chart.point>Yes—New point array.

Returns

void

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.