Drawing / Reference
alerta.box.set_bgcolor
TradingView-compatible spelling: box.set_bgcolor, runs without warnings
Updates box background color.
alerta.box.set_bgcolor(id, color) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | box handle | Yes | — | Target box handle. |
color | string | Yes | — | New background color. |
Returns
voidExample
alerta.box.set_bgcolor
bx = box.new(bar_index - 5, high, bar_index, low)box.set_bgcolor(bx, "rgba(16,185,129,0.15)")Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.