Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.label.set_location
On this pageSignatureParametersReturnsExample

Drawing / Reference

alerta.label.set_location

TradingView-compatible spelling: label.set_location, runs without warnings

Updates label location mode.

alerta.label.set_location(label_id, location) → void

Parameters

NameTypeRequiredDefaultDescription
label_idlabel handleYes—Target label handle.
locationstringYes—Location token (abovebar, belowbar, absolute).

Returns

void

Example

alerta.label.set_location
lb = label.new(bar_index, close, "Signal")label.set_location(lb, "abovebar")

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.