OPEN-SOURCE SCRIPT
Updated

Customizable ORB Box

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

Release Notes
Customizable ORB Box – Updated Version 🚀

This version adds two highly requested features:

Custom Session ORB 🕒

Define your own session window (e.g., Asia, London, New York).

ORB box is built for the exact session you choose.

Great for traders who follow multiple markets across different timezones.

Show Only Current ORB Option 👀

Toggle to hide all past ORBs and keep only today’s/current session box visible.

Keeps your chart clean and focused.

✅ Existing First Candle ORB and Custom Timeframe ORB modes are still available.
✅ Alerts included for breakouts above/below ORB High/Low.
✅ Box colors & borders are fully customizable.

This makes the ORB Box much more flexible for intraday and session-based trading strategies.
Release Notes
This indicator plots the Open Range Breakout (ORB) levels using three flexible modes:

🔹 First Candle Mode – Uses the first bar of the day as the ORB range.
🔹 Custom Timeframe Mode – Uses any higher timeframe candle (e.g., 15m, 30m, 1h) as the ORB range. By default, this is non-repainting (waits for the higher timeframe bar to close). You can optionally allow real-time updates, but this may repaint.
🔹 Custom Session Mode – Define your own trading session (start & end time). The box is drawn based on that session’s high/low.

✨ Key Features

Three ORB calculation modes in one script

Session-aware logic (works across markets and time zones)

Optional setting to allow real-time higher timeframe ORB (may repaint)

Option to display only the latest ORB or keep all historical boxes

Built-in alert conditions for breakout above/below ORB range

⚠️ Notes

Higher timeframe ORB (Custom TF) is non-repainting by default.

Enabling “Allow realtime ORB for higher TF” makes the box update live, but can repaint when the HTF candle closes.

Always test alerts and behavior on your symbol/timeframe before using in live trading.

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.