Time / Reference
alerta.session.ispremarket
TradingView-compatible spelling: session.ispremarket, runs without warnings
Pine v5/v6 series<bool>: true on bars that open inside the exchange's pre-market window (04:00–09:30 New York time for a US stock). Always false for symbols without extended hours.
alerta.session.ispremarket → series<bool>Returns
series<bool>Example
alerta.session.ispremarket
if session.ispremarket bgcolor(color.new(color.blue, 90))Notes
- Requires an equity chart with premarket bars; no highlight is expected on 24/7 crypto.
Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.