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

Drawing / Reference

alerta.line.set_first_point

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

Updates the line start point from a `chart.point` object.

alerta.line.set_first_point(id, point) → void

Parameters

NameTypeRequiredDefaultDescription
idline handleYes—Target line handle.
pointchart.pointYes—New first point.

Returns

void

Example

alerta.line.set_first_point
var ln = line.new(bar_index - 5, low, bar_index, high)if barstate.islast    p = chart.point.from_index(bar_index - 10, low[1])    line.set_first_point(ln, p)

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.