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

Drawing / Reference

alerta.line.set_xy2

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

Updates line end point (x2, y2) together.

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

Parameters

NameTypeRequiredDefaultDescription
idline handleYes—Target line handle.
xintYes—New X2 coordinate.
yfloatYes—New Y2 coordinate.

Returns

void

Example

alerta.line.set_xy2
ln = line.new(bar_index - 5, low, bar_index, high)line.set_xy2(ln, bar_index, high)

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.