Time / Reference
alerta.session.ismarket
TradingView-compatible spelling: session.ismarket, runs without warnings
Pine v5/v6 series<bool>: true on every bar that opens inside the exchange's regular trading hours, read on the exchange's own clock (so daylight saving moves the window with it — 09:30–16:00 New York time for a US stock). Weekends are closed; exchange holidays are not modelled. A daily or longer bar is always in market, and so is every bar of a symbol that trades around the clock (crypto, forex, indices, futures).
alerta.session.ismarket → series<bool>Returns
series<bool>Example
alerta.session.ismarket
ema20 = ta.ema(close, 20)plotshape(session.ismarket and ta.crossover(close, ema20), style=shape.triangleup)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.