← Back to DYNA

Session Open Range

Session Open Range captures the high and low of the first few minutes of every trading session and tracks breakouts from that range for the rest of the day. The opening range is the session's initial balance: once it is set, the first decisive break above or below the range is a structural reference many traders watch for the day's directional bias. This indicator draws the opening range as a box, extends the high and low as dashed lines through the session, and marks the first breakout in each direction with a triangle.

Most ORB tools are hardcoded to a single exchange. Session Open Range is configurable end-to-end: pick any session window, any timezone, any OR duration. It works identically on a stock or index cash session, on NYSE 9:30--16:00 ET, on a London or Tokyo forex session, or on a custom 24h UTC-anchored crypto session. Only the first breakout in each direction fires per session, so you get one clean bullish signal and one clean bearish signal — no noise from re-crosses.

Key Features

How It Works

At the start of each session (determined by your session window and timezone), the indicator begins tracking the high and low of every bar. During the formation window — the first N minutes of the session — the opening range box expands as each new bar's high or low extends the range. A light orange background tint marks the bars that are still inside the formation window so you can see it forming in real time.

When the formation window closes, the OR is locked: the box border changes to orange, and the OR high and OR low are extended forward as dashed horizontal lines (green for the high, red for the low). The indicator then watches every subsequent bar in the session. The first bar whose close breaks above the OR high gets a green triangle below it labeled "BO". The first bar whose close breaks below the OR low gets a red triangle above it labeled "BO". Only one arrow fires in each direction per session — subsequent re-crosses are intentionally ignored, because only the first break of the initial balance carries structural significance.

When the session ends and a new one begins, the entire cycle resets. Older sessions are kept on the chart up to the configured history limit, then deleted automatically to prevent clutter.

Settings

Opening Range Period (min) (default: 15) defines how many minutes from session open are used to build the opening range. Common choices are 5 for scalpers, 15 for intraday traders, 30 or 60 for swing-oriented day traders. Session Time (default: 0915-1530) is the trading session window; the TradingView session picker supports day-of-week masks for instruments that do not trade every day. Timezone (default: Asia/Kolkata) interprets the session string — match the exchange's local time to avoid DST errors.

Max Sessions to Keep (default: 5) limits how many past sessions of boxes and extension lines are kept on the chart. Older drawings are deleted automatically, so the script stays within TradingView's drawing object budget even on long histories.

Visual toggles let you independently show or hide the OR box, the extension lines, the breakout arrows, and the formation-window tint. Box Fill Transparency (default: 85) controls how see-through the box fill is. The two alert toggles enable or disable the bullish and bearish breakout alerts individually.

Alerts

To set up alerts: click TradingView's Alerts button, choose "Session Open Range [DYNA]" from the condition dropdown, pick Bullish Breakout or Bearish Breakout, and select your notification channel.

Best Practices

Part of the DYNA Ecosystem

Session Open Range is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.

Disclaimer

This indicator is a technical analysis and educational tool only — it is not financial advice and makes no guarantee of any outcome. Past performance does not predict future results. Always do your own research and use proper position sizing and risk management.