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

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

Parameters

NameTypeRequiredDefaultDescription
idlabelYes—Label handle.
ylocstringYes—yloc.price | yloc.abovebar | yloc.belowbar.

Returns

void

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.