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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | line handle | Yes | — | Target line handle. |
point | chart.point | Yes | — | New first point. |
Returns
voidExample
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.