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

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

Parameters

NameTypeRequiredDefaultDescription
idbox handleYes—Target box handle.
topfloatYes—New top value.

Returns

void

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.