ORB Range Only (Customizable Time Zone)

Overview
The ORB Range Only (Customizable Time Zone) is a Pine Script v6 indicator for TradingView that identifies and visualizes Opening Range Breakout (ORB) levels for intraday trading. It plots the high and low during a user-defined window (default: 15 minutes) as key reference levels and extends them through the session. A tick-snapping option aligns the start to the first bar in the window. A 1-minute fallback and optional breakout markers provide a clear, display-based workflow for studying breakout conditions.
How It Works
The indicator tracks the session window’s highest and lowest prices using TradingView’s ta.highest and ta.lowest. A snap-to-first-bar mechanism anchors the window’s start to the first bar at/after the intended timestamp to help on thin charts. For sparse data, a 1-minute fallback retrieves display-based highs/lows via request.security (no lookahead). While the window is open, a dynamic box updates in real time; once it closes, a final box is drawn and extended to 16:00 in the selected time zone, with dotted lines at the ORB high/low. Breakout triangles appear when price crosses these locked levels.
Key Features
• Customizable ORB window (duration and 12-hour start with AM/PM)
• Tick-aligned start (snap to first available bar)
• 1-minute fallback for sparse data
• Live “building” box and post-window final box with dotted levels
• Optional breakout markers (bullish/bearish triangles)
• Time zone presets (Chart, major regions, UTC, or Custom Olson ID) and color controls
What It Displays
A real-time ORB range box during the window and a locked range for the rest of the session, with optional breakout markers to study intraday momentum and reference levels across stocks, forex, futures, or crypto.
Originality
This Pine v6 indicator implementation uses TradingView’s built-in request.security, ta.highest, and ta.lowest functions.
Common Ways People Use It
• Day traders reviewing opening-range breakouts
• Scalpers focusing on early session volatility
• Technical analysts marking intraday reference levels
Configuration Notes
Set the ORB window (default: 15 minutes at 8:00 AM in the selected time zone, default preset: Chart), enable/disable tick-snapping and the 1-minute fallback, choose a time zone preset or a custom Olson ID, and adjust colors. Use breakout triangles to visualize when price crosses the ORB high/low.
Legal Disclaimer
This indicator is for informational and educational purposes only—not investment, financial, or trading advice. Past performance is not indicative of future results; trading involves risk of loss. Provided “as is” with no warranties. Consult a qualified professional before making decisions. By using it, you assume all risk and agree to this disclaimer.
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente TradingScriptSolutions.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Declinazione di responsabilità
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente TradingScriptSolutions.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.