Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.session.isfirstbar
On this pageSignatureReturnsExample

Time / Reference

alerta.session.isfirstbar

TradingView-compatible spelling: session.isfirstbar, runs without warnings

Pine v5/v6 series<bool>: true on the first bar of each day's session (the exchange day time("D") uses; a forex session opens 17:00 New York), pre-market bars included; inside request.security, of the requested bars. session.isfirstbar_regular is the first regular-hours bar.

alerta.session.isfirstbar → series<bool>

Returns

series<bool>

Example

alerta.session.isfirstbar
if session.isfirstbar    label.new(bar_index, high, "start")

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.