Drawing / Reference
alerta.label.set_yloc
TradingView-compatible spelling: label.set_yloc, runs without warnings
Pine v6: switches y-axis between price | abovebar | belowbar.
alerta.label.set_yloc(id, yloc) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | label | Yes | — | Label handle. |
yloc | string | Yes | — | yloc.price | yloc.abovebar | yloc.belowbar. |
Returns
voidExample
alerta.label.set_yloc
lbl = label.new(bar_index, high, "x")label.set_yloc(lbl, yloc.abovebar)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.