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

Drawing / Reference

alerta.polyline.set_line_style

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

Pine v6: solid | dashed | dotted.

alerta.polyline.set_line_style(id, line_style) → void

Parameters

NameTypeRequiredDefaultDescription
idpolylineYes—Polyline handle.
line_stylestringYes—line.style_solid | line.style_dashed | line.style_dotted.

Returns

void

Example

alerta.polyline.set_line_style
indicator("polyline.set_line_style", 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_line_style(p, line.style_dashed)

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.