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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
label_id | label handle | Yes | — | Target label handle. |
location | string | Yes | — | Location token (abovebar, belowbar, absolute). |
Returns
voidExample
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.