Functions
table.cell_set_bgcolor()
Sets the background color of an existing cell. No-op if the cell does not exist.
Syntax
table.cell_set_bgcolor(series table id, series int column, series int row, series color color) → void
Arguments
id required series table Table object. column required series int 0-based column. row required series int 0-based row. color required series color New cell background color. Return Type
void Example
//@lipi=2
indicator("table.cell_set_bgcolor Example")
if barstate.islast {
t = table.new(position.top_right, 1, 1)
table.cell(t, 0, 0, text="Hi")
table.cell_set_bgcolor(t, 0, 0, color.green)
}