Drawing / Reference
alerta.line.set_width
TradingView-compatible spelling: line.set_width, runs without warnings
Updates line width.
alerta.line.set_width(id, width) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | line handle | Yes | — | Target line handle. |
width | int | Yes | — | New width value. |
Returns
voidExample
alerta.line.set_width
ln = line.new(bar_index - 5, low, bar_index, high)line.set_width(ln, 2)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.