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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | box handle | Yes | — | Target box handle. |
left | int | Yes | — | New left coordinate. |
right | int | Yes | — | New right coordinate. |
xloc | string | Yes | — | bar_index | bar_time |
Returns
voidExample
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.