Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.box.set_text_halign
On this pageSignatureParametersReturnsExample

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) → void

Parameters

NameTypeRequiredDefaultDescription
idbox handleYes—Target box handle.
text_halignstringYes—left | center | right

Returns

void

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.