Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.line.set_color
On this pageSignatureParametersReturnsExample

Drawing / Reference

alerta.line.set_color

TradingView-compatible spelling: line.set_color, runs without warnings

Updates line color.

alerta.line.set_color(id, color) → void

Parameters

NameTypeRequiredDefaultDescription
idline handleYes—Target line handle.
colorstringYes—New color value.

Returns

void

Example

alerta.line.set_color
ln = line.new(bar_index - 5, low, bar_index, high)line.set_color(ln, "#22c55e")

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.