Skip to content
AlertaChartAlertaScript / docs
AlertaScript / last_bar_index
On this pageSignatureReturnsExample

Metadata / Reference

last_bar_index

TradingView-compatible spelling: last_bar_index, runs without warnings

Zero-based index of the final bar in the current dataset. Changes when a new chart bar is appended.

last_bar_index → int

Returns

int

Example

last_bar_index
//@version=6indicator("Last bar")plotshape(bar_index == last_bar_index, style = shape.circle)

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.