Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.chart.point.from_index
On this pageSignatureParametersReturnsExample

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.point

Parameters

NameTypeRequiredDefaultDescription
indexintYes—Bar index.
pricefloatYes—Price.

Returns

chart.point

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.