Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.line.set_xy1
On this pageSignatureParametersReturnsExample

Drawing / Reference

alerta.line.set_xy1

TradingView-compatible spelling: line.set_xy1, runs without warnings

Updates line start point (x1, y1) together.

alerta.line.set_xy1(id, x, y) → void

Parameters

NameTypeRequiredDefaultDescription
idline handleYes—Target line handle.
xintYes—New X1 coordinate.
yfloatYes—New Y1 coordinate.

Returns

void

Example

alerta.line.set_xy1
ln = line.new(bar_index - 5, low, bar_index, high)line.set_xy1(ln, bar_index - 10, low[1])

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.