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

Drawing / Reference

alerta.polyline.set_curved

TradingView-compatible spelling: polyline.set_curved, runs without warnings

Pine v6: enables/disables curve smoothing on a polyline.

alerta.polyline.set_curved(id, curved) → void

Parameters

NameTypeRequiredDefaultDescription
idpolylineYes—Polyline handle.
curvedboolYes—true = curved, false = straight.

Returns

void

Example

alerta.polyline.set_curved
indicator("polyline.set_curved", 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_curved(p, true)

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.