Drawing / Reference
alerta.box.set_text_formatting
TradingView-compatible spelling: box.set_text_formatting, runs without warnings
Pine v6: apply italic/bold to the box text.
alerta.box.set_text_formatting(id, text_formatting) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | box | Yes | — | Box handle. |
text_formatting | string | Yes | — | Formatting flag. |
Returns
voidExample
alerta.box.set_text_formatting
b = box.new(bar_index - 5, high, bar_index, low)box.set_text(b, "Zone")box.set_text_formatting(b, "bold")Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.