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

Drawing / Reference

alerta.label.set_style

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

Updates label style token.

alerta.label.set_style(id, style) → void

Parameters

NameTypeRequiredDefaultDescription
idlabel handleYes—Target label handle.
stylestringYes—Style token (label_up, label_down, none).

Returns

void

Example

alerta.label.set_style
lb = label.new(bar_index, close, "Signal")label.set_style(lb, "label_up")

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.