Time / Reference
alerta.session.islastbar
TradingView-compatible spelling: session.islastbar, runs without warnings
Pine v5/v6 series<bool>: true on the last bar of each day's session, post-market bars included; on the chart's last bar when the next bar would open a new day; inside request.security, of the requested bars. session.islastbar_regular is the last regular-hours bar.
alerta.session.islastbar → series<bool>Returns
series<bool>Example
alerta.session.islastbar
if session.islastbar label.new(bar_index, high, "end")Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.