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

Drawing / Reference

alerta.label.set_color

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

Updates label background color.

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

Parameters

NameTypeRequiredDefaultDescription
idlabel handleYes—Target label handle.
colorstringYes—New color value.

Returns

void

Example

alerta.label.set_color
lb = label.new(bar_index, close, "Signal")label.set_color(lb, "#ef4444")

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.