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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | label | Yes | — | Label handle. |
text_formatting | string | Yes | — | Formatting flag. |
Returns
voidExample
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.