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

Drawing / Reference

alerta.box.set_xloc

TradingView-compatible spelling: box.set_xloc, runs without warnings

Updates box left/right coordinates and X-location mode together.

alerta.box.set_xloc(id, left, right, xloc) → void

Parameters

NameTypeRequiredDefaultDescription
idbox handleYes—Target box handle.
leftintYes—New left coordinate.
rightintYes—New right coordinate.
xlocstringYes—bar_index | bar_time

Returns

void

Example

alerta.box.set_xloc
bx = box.new(bar_index - 5, high, bar_index, low)box.set_xloc(bx, bar_index - 10, bar_index, xloc.bar_index)

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.