OPEN-SOURCE SCRIPT
Cập nhật Open Range Breakout

Open Range Breakout (ORB)
The Open Range Breakout (ORB) is a classic intraday strategy used across stocks, indices, FX and futures. It focuses on how price behaves during the first minutes of a major session, when liquidity and volatility are highest.
This indicator fully automates the ORB process with session detection, box drawing, breakout & retest logic, and final Buy/Sell signals.
Multi-Session Support
Choose between the three most important global opens:
Asia (Tokyo) – JPY pairs, Asian indices, gold, crypto
London – FX majors, European indices, strong volatility
New York – US indices, USD pairs, gold, oil, highest volume
The Opening Range is calculated only during the selected session.
ORB Range (5 / 15 / 30 min)
The indicator builds the ORB High/Low from the first X minutes of the session, draws the box, and waits for price action once the range is complete.
How It Works
ORB Window → High/Low of the opening minutes are recorded.
Breakout → Price closes above/below the ORB → “BREAKOUT” label.
Retest → Price returns to the ORB box → “RETEST” label.
Confirmation Levels Freeze → Upper/lower structure set.
Final Signal
Close above frozen upper level → BUY
Close below frozen lower level → SELL
This filters out false breakouts and provides structured continuation signals.
Alerts
Includes built-in alert conditions for:
ORB BUY Signal
ORB SELL Signal
Alerts trigger exactly when the Buy or Sell label appears.
Works On
Stocks & indices
Forex
Futures
The Open Range Breakout (ORB) is a classic intraday strategy used across stocks, indices, FX and futures. It focuses on how price behaves during the first minutes of a major session, when liquidity and volatility are highest.
This indicator fully automates the ORB process with session detection, box drawing, breakout & retest logic, and final Buy/Sell signals.
Multi-Session Support
Choose between the three most important global opens:
Asia (Tokyo) – JPY pairs, Asian indices, gold, crypto
London – FX majors, European indices, strong volatility
New York – US indices, USD pairs, gold, oil, highest volume
The Opening Range is calculated only during the selected session.
ORB Range (5 / 15 / 30 min)
The indicator builds the ORB High/Low from the first X minutes of the session, draws the box, and waits for price action once the range is complete.
How It Works
ORB Window → High/Low of the opening minutes are recorded.
Breakout → Price closes above/below the ORB → “BREAKOUT” label.
Retest → Price returns to the ORB box → “RETEST” label.
Confirmation Levels Freeze → Upper/lower structure set.
Final Signal
Close above frozen upper level → BUY
Close below frozen lower level → SELL
This filters out false breakouts and provides structured continuation signals.
Alerts
Includes built-in alert conditions for:
ORB BUY Signal
ORB SELL Signal
Alerts trigger exactly when the Buy or Sell label appears.
Works On
Stocks & indices
Forex
Futures
Phát hành các Ghi chú
bugsMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.