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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | polyline | Yes | — | Polyline handle. |
line_style | string | Yes | — | line.style_solid | line.style_dashed | line.style_dotted. |
Returns
voidExample
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.