Drawing / Reference
alerta.box.set_top
TradingView-compatible spelling: box.set_top, runs without warnings
Updates box top price.
alerta.box.set_top(id, top) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | box handle | Yes | — | Target box handle. |
top | float | Yes | — | New top value. |
Returns
voidExample
alerta.box.set_top
bx = box.new(bar_index - 5, high, bar_index, low)box.set_top(bx, high)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.