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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | label handle | Yes | — | Target label handle. |
color | string | Yes | — | New color value. |
Returns
voidExample
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.