Drawing / Reference
alerta.chart.point.from_index
TradingView-compatible spelling: chart.point.from_index, runs without warnings
Pine v6: creates a chart.point at a given bar index; time is auto-derived from the bar at that index.
alerta.chart.point.from_index(index, price) → chart.pointParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
index | int | Yes | — | Bar index. |
price | float | Yes | — | Price. |
Returns
chart.pointExample
alerta.chart.point.from_index
ln = line.new(bar_index - 5, low, bar_index, high)p1 = chart.point.from_index(bar_index - 10, low)p2 = chart.point.from_index(bar_index, high)line.set_first_point(ln, p1)line.set_second_point(ln, p2)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.