Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.label.set_textcolor
On this pageSignatureParametersReturnsExample

Drawing / Reference

alerta.label.set_textcolor

TradingView-compatible spelling: label.set_textcolor, runs without warnings

Updates label text color.

alerta.label.set_textcolor(id, textcolor) → void

Parameters

NameTypeRequiredDefaultDescription
idlabel handleYes—Target label handle.
textcolorstringYes—New text color.

Returns

void

Example

alerta.label.set_textcolor
lb = label.new(bar_index, close, "Signal")label.set_textcolor(lb, "#ffffff")

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.