Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.table.cell_set_bgcolor
On this pageSignatureParametersReturnsExample

Tables / Reference

alerta.table.cell_set_bgcolor

TradingView-compatible spelling: table.cell_set_bgcolor, runs without warnings

Updates the background color of a table cell.

alerta.table.cell_set_bgcolor(table_id, column, row, bgcolor) → void

Parameters

NameTypeRequiredDefaultDescription
table_idstringYes—ID of the table.
columnintYes—Column index (0-based).
rowintYes—Row index (0-based).
bgcolorstringYes—Cell background color.

Returns

void

Example

alerta.table.cell_set_bgcolor
var t = table.new(position.top_right, 1, 1)if barstate.islast    table.cell(t, 0, 0, "Background color", text_color=color.white)    table.cell_set_bgcolor(t, 0, 0, color.blue)

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.