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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.