OPEN-SOURCE SCRIPT
Customizable ORB Box

Customizable ORB Box
📘 Description
A powerful and flexible Opening Range Breakout (ORB) visualization tool designed for intraday traders. This indicator plots the opening range using either the first candle or a user-defined custom timeframe, and updates in real time.
🔧 Key Features
First Candle Mode – Plots the high/low range of the first candle of each new trading day.
Custom Timeframe Mode – Builds the ORB box live over a chosen duration (e.g., 5, 15, 30 minutes) and finalizes it after the timeframe completes.
Dynamic Box Colors – Bullish and bearish color themes based on range closure direction.
Multi-Day Plotting – Displays ORB boxes across all days, not just today.
Alerts Included – Triggers when price breaks above or below the ORB range.
No repainting – Stable and historical-friendly behavior.
🕒 ETH Compatibility
This indicator respects your TradingView chart settings:
✅ If ETH is enabled, ORB begins with the first ETH candle.
✅ If ETH is disabled, ORB begins with Regular Trading Hours (RTH).
Tip: Control this via the chart’s ⚙️ “Session” settings for your instrument.
💡 How to Use
Use First Candle Mode for classic ORB strategy setups (quick early structure).
Use Custom Timeframe Mode on smaller timeframes (e.g., 3min) for dynamic range-building.
Combine with volume, VWAP, trendlines, or price action for breakout confirmation.
📘 Description
A powerful and flexible Opening Range Breakout (ORB) visualization tool designed for intraday traders. This indicator plots the opening range using either the first candle or a user-defined custom timeframe, and updates in real time.
🔧 Key Features
First Candle Mode – Plots the high/low range of the first candle of each new trading day.
Custom Timeframe Mode – Builds the ORB box live over a chosen duration (e.g., 5, 15, 30 minutes) and finalizes it after the timeframe completes.
Dynamic Box Colors – Bullish and bearish color themes based on range closure direction.
Multi-Day Plotting – Displays ORB boxes across all days, not just today.
Alerts Included – Triggers when price breaks above or below the ORB range.
No repainting – Stable and historical-friendly behavior.
🕒 ETH Compatibility
This indicator respects your TradingView chart settings:
✅ If ETH is enabled, ORB begins with the first ETH candle.
✅ If ETH is disabled, ORB begins with Regular Trading Hours (RTH).
Tip: Control this via the chart’s ⚙️ “Session” settings for your instrument.
💡 How to Use
Use First Candle Mode for classic ORB strategy setups (quick early structure).
Use Custom Timeframe Mode on smaller timeframes (e.g., 3min) for dynamic range-building.
Combine with volume, VWAP, trendlines, or price action for breakout confirmation.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.