Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.box.set_bgcolor
On this pageSignatureParametersReturnsExample

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) → void

Parameters

NameTypeRequiredDefaultDescription
idbox handleYes—Target box handle.
colorstringYes—New background color.

Returns

void

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.