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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | polyline | Yes | — | Polyline handle. |
curved | bool | Yes | — | true = curved, false = straight. |
Returns
voidExample
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.