INVITE-ONLY SCRIPT

ORB Range Only (Customizable Time Zone)

14
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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.