Drawing / Reference
alerta.box.set_text_halign
TradingView-compatible spelling: box.set_text_halign, runs without warnings
Updates horizontal alignment of box text.
alerta.box.set_text_halign(id, text_halign) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | box handle | Yes | — | Target box handle. |
text_halign | string | Yes | — | left | center | right |
Returns
voidExample
alerta.box.set_text_halign
bx = box.new(bar_index - 5, high, bar_index, low)box.set_text_halign(bx, "center")Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.