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 → intReturns
intExample
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.