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

Drawing / Reference

alerta.label.set_text_formatting

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

Pine v6: apply italic/bold to the label text (text.format_bold | text.format_italic | text.format_none).

alerta.label.set_text_formatting(id, text_formatting) → void

Parameters

NameTypeRequiredDefaultDescription
idlabelYes—Label handle.
text_formattingstringYes—Formatting flag.

Returns

void

Example

alerta.label.set_text_formatting
lbl = label.new(bar_index, high, "x")label.set_text_formatting(lbl, "bold")

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.