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

Metadata / Reference

bar_index

TradingView-compatible spelling: bar_index, runs without warnings

Zero-based position of the current bar within the chart dataset. Historical access such as bar_index[1] refers to the preceding bar.

bar_index → series int

Returns

series int

Example

bar_index
//@version=6indicator("Bar index")plot(bar_index)

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.