Opening Range Breakout
Free MT5 Opening Range Breakout indicator: draws the daily range box and ATR-filtered breakout arrows. 0 of 101 signals repainted in the Lab test.

- Repainted
- 0 / 101
- Signals / week
- ≈ 8
- Tested on
- EURUSD M15
- Tested
- 2026-10-05
Overview
The Opening Range Breakout indicator for MT5 draws each day's opening range as a box on your main price chart. It marks the first ATR-filtered close beyond that box with a bullish or bearish arrow, then tags the breakout as Confirmed or Failed. In the Lab's EURUSD M15 test, 0 of 101 arrows changed after they appeared, and 54.5% moved 1 ATR in their direction before moving 1 ATR against it.
It is for intraday traders who trade the first move out of a session open. It draws the box, spots the breakout and tracks what happens next, so you do not have to.
What it draws on your chart
The opening range is the high-to-low span that price builds in the first minutes after a session opens. A close outside that range is an opening range breakout. The tool runs in the main chart window, with no subwindow, and draws:
- Opening Range Box: a rectangle from the highest high to the lowest low of the first
OpeningRangeMinutesafterSessionStartHour:SessionStartMinute, in broker server time. - Box Midline: a trend line through the middle of the day's box.
- Bullish ORB Breakout / Bearish ORB Breakout: arrows on the breakout bar. Each fires only on the first qualifying bar of the day.
- Confirmed / Failed Tag: a label that shows whether the breakout held.
- ORB Status panel: the opening window state with a countdown, today's box high, low and width, today's breakout result, and the Confirmed rate over the last
StatsLookbackDaysdays.
Only the boxes from the last MaxDaysShown days stay on the chart (default 5). When a day drops out, its box, midline and tag are deleted together.
How the Lab tested it
The Lab ran version 1.00 (151.1 KB) on MT5 build 6230 on 2026-10-05. The test used EURUSD M15 from 2026-07-06 to 2026-10-02, with real ticks from Raw Trading Ltd. Every arrow was logged as it appeared and checked again later:
- Repaint: 0 of 101 logged signals changed or disappeared.
- Arrow delay: 0 bars. The arrow sits on the bar that triggered it, and it appears once that bar has closed.
What the Lab numbers mean for you
- 54.5% of 101 signals reached 1 ATR in their direction before 1 ATR against. That is only a little better than a coin flip, so treat the arrow as a setup to filter, not an entry on its own.
- The median signal reached one side in 2 bars, about 30 minutes on M15. Breakouts settle fast, so plan your exit before the arrow fires, not hours later.
- 0% of signals failed to reach either side within 20 bars. Every breakout led to a move. The uncertainty is the direction, not whether price moves.
- About 8 signals per week came on EURUSD M15: 3.8 bullish and 4.2 bearish.
The split by direction is where the test gets interesting:
Scale zoomed in to show the difference (bars do not start at zero).
Bullish arrows were an exact coin flip, with a median of 1.5 bars to reach either side. Bearish arrows did better, with a median of 2.0 bars. This is one symbol over about 13 weeks, so the gap may not hold on another pair or in another period.
How it works
- 1Each day, track the highest high and lowest low inside the opening range window from the session start.
Opening range = highest High to lowest Low in the first OpeningRangeMinutesInputs: SessionStartHour, SessionStartMinute, OpeningRangeMinutes - 2Read the Average True Range on the chart timeframe to scale the breakout buffer and the minimum candle body.
ATR = Average True Range over ATRPeriodInputs: ATRPeriod - 3After the range closes, a bar closing beyond an edge plus buffer, with a big same-direction body, signals a breakout.
Close > Range High + BreakoutBufferATRMult x ATR, Body >= BreakoutBodyATRMult x ATRInputs: BreakoutBufferATRMult, BreakoutBodyATRMult - 4Judge each breakout: failed if a later close returns to the range edge, confirmed if it holds through the window.Inputs: ConfirmWindowBars
- 5Strength from 1 to 5 grows with how far the close is beyond the range edge, measured in ATR steps.
Strength = round(abs(Close - Edge) / ATR / 0.2), limited to 1 to 5
Specifications
- Platform
- MetaTrader 5
- Version
- 1.00
- Type
- Indicator
- Window
- Main chart
- Draws
- 2 arrows, 3 zones, 1 panel
- Alerts
- popup, push, sound
- Repaints
- No (0 of 101 signals changed)
- Inputs
- 19
- Tested on
- MT5 build 6230 · 2026-10-05
Repaint test
No repaint detected. In a 6 Jul 2026 – 2 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 101 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.
IndicatorFree — tested 2026-10-05 · MT5 build 6230 · Raw Trading Ltd real ticks. Results come from historical data, not live trading, and do not guarantee future results.
Signal statistics
Over 6 Jul 2026 – 2 Oct 2026 on EURUSD M15, the indicator printed 101 arrows. After 54.5% of them, price moved 1×ATR(14) in the arrow's direction before moving 1×ATR against it (median 2 bars). 0% reached neither level within 20 bars.
This measures price movement after the arrow, not a trading result. It includes no spread, commission, stop loss or position sizing.
What it draws
- Arrows (Bullish ORB Breakout) from buffer 0, drawn on the closed bar.
- Arrows (Bearish ORB Breakout) from buffer 1, drawn on the closed bar.
- Rectangles (Opening Range Box) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
- Rectangles (Box Midline) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
- Rectangles (Confirmed / Failed Tag) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
- An on-chart panel (ORB Status); values shown in the panel are not exposed as buffers.
Inputs
| Input | Default | What it does |
|---|---|---|
| SessionStartHour | 9 | Session start hour in broker server time (0 - 23) |
| SessionStartMinute | 0 | Session start minute (0 - 59) |
| OpeningRangeMinutes | 30 | Length of the opening range window in minutes (5 - 120) |
| MaxDaysShown | 5 | Number of most recent day boxes kept on the chart (1 - 30) |
| ATRPeriod | 14 | ATR period used for the breakout buffer and the minimum body (5 - 50) |
| BreakoutBufferATRMult | 0.1 | Extra distance beyond the box edge the close must reach, in ATR (0 - 1) |
| BreakoutBodyATRMult | 0.3 | Minimum body of the breakout bar, in ATR (0.1 - 2) |
| ConfirmWindowBars | 3 | Bars watched after a breakout: a close back inside the box = Failed, else Confirmed (1 - 20) |
| StatsLookbackDays | 20 | Recent days used for the Confirmed rate on the panel (5 - 60) |
| EnableAlertPopup | true | Popup alert on a new breakout |
| EnableAlertPush | false | Push notification to the MT5 mobile app on a new breakout |
| EnableAlertSound | false | Play a sound on a new breakout |
| SoundFile | alert.wav | Sound file played by the sound alert |
| AlertCooldownMinutes | 15 | Minimum minutes between two alerts (1 - 120) |
| ShowDashboard | true | Show the status panel |
| ShowTags | true | Show the Confirmed / Failed tags (also a panel toggle) |
| Theme | Dark | Chart color theme applied on load |
| RestoreTheme | true | Restore the original chart colors when the indicator is removed |
| PanelScale | 1 | Panel size multiplier (DPI is handled automatically) |
How to read it
Install in one line
In MT5, open File > Open Data Folder, copy the file into MQL5/Indicators, refresh the Navigator and drag Opening Range Breakout onto an intraday chart.
Reading the box and the midline
During the opening window the box grows with every new high or low, and the panel counts down to the end of the window. When the window closes, the box is frozen and becomes that day's reference. The Box Midline shows the middle of the range, which helps you judge how far a pullback has gone into the box.
How a breakout arrow forms
The tool reads the Average True Range (ATR) on the chart timeframe, over ATRPeriod bars. It uses ATR to scale two filters:
- The breakout buffer: the bar must close above the box high plus
BreakoutBufferATRMult× ATR, or below the box low minus that buffer. - The minimum body: the breakout bar's body must be at least
BreakoutBodyATRMult× ATR, in the same direction as the break.
Both checks run on a closed bar, after the opening window has ended. Each arrow type fires on the first qualifying bar of the day only.
Confirmed and Failed tags
After an arrow, the tool watches the next ConfirmWindowBars bars (default 3). If any of them closes back inside the box, the breakout is tagged Failed. If none does, it is tagged Confirmed. The panel's Confirmed rate is the share of recent breakouts that held. It is a quick read on whether this symbol's opening breakouts have been following through lately.
Three common misreads
- A wick through the edge is not a breakout. No arrow appears until a bar closes beyond the edge plus the buffer, with a large enough body. If price spikes through and you see no arrow, the filter did its job.
- The tag is hindsight, not an entry. Confirmed or Failed appears
ConfirmWindowBarsbars after the arrow. By then the move the Lab measured has usually happened already. - The session time is broker server time. If your platform clock differs from your local time, a 9:00 setting can build the box around the wrong hour. Before you trust the box, check it against the open you actually trade.
Inputs to change first
| Input | Default (range) | What changing it does |
|---|---|---|
SessionStartHour / SessionStartMinute | 9 / 0 | Moves the box to the session open you trade (server time). |
OpeningRangeMinutes | 30 (5-120) | Shorter gives a narrower box and earlier, more frequent breaks. Longer gives a wider box and fewer breaks. |
BreakoutBufferATRMult | 0.1 (0-1) | Higher means the close must be further outside the box, so you get fewer marginal breaks. |
BreakoutBodyATRMult | 0.3 (0.1-2) | Higher demands a stronger breakout candle and drops small-bodied closes. |
ConfirmWindowBars | 3 (1-20) | More bars makes a Confirmed tag harder to earn. |
StatsLookbackDays | 20 (5-60) | How many recent days feed the panel's Confirmed rate. |
ATRPeriod | 14 (5-50) | A shorter period makes the buffer and body filters react faster to volatility changes. |
Display inputs: MaxDaysShown (1-30), ShowDashboard, ShowTags (also a toggle on the panel) and PanelScale (DPI is handled automatically). Theme (default Dark) recolors the chart when the indicator loads. With RestoreTheme on, your original colors come back when you remove the indicator.
Alerts
Alerts fire on a new breakout arrow:
- Popup (
EnableAlertPopup, on by default) opens in the MT5 alert window. - Push (
EnableAlertPush, off by default) goes to the MT5 mobile app. - Sound (
EnableAlertSound, off by default) playsSoundFile(defaultalert.wav).
AlertCooldownMinutes (default 15, range 1-120) sets the minimum gap between two alerts.
A decision rule for each arrow
- Bearish ORB Breakout: consider it only if the arrow is on a closed bar and the panel's Confirmed rate is at or above a threshold you choose. Invalidate it the moment a later bar closes back inside the box. That is the same condition that will later print Failed, so exit then rather than waiting for the tag.
- Bullish ORB Breakout: apply the same rule, plus one filter of your own, such as your higher-timeframe direction. In the Lab test this arrow did no better than chance on its own.
- Skip both when today's box width on the panel is far larger than usual. A very wide box means the move may have already happened inside the window. This is your judgement call, not a Lab rule.
Installation
- 1Download OpeningRangeBreakout.ex5 from the button above (Google Drive).
- 2In MetaTrader 5: File → Open Data Folder → MQL5 → Indicators. Copy OpeningRangeBreakout.ex5 there.
- 3Restart MT5 or right-click Indicators in Navigator → Refresh.
- 4Drag Opening Range Breakout onto a chart. For push alerts, enable "Allow push notifications" under Tools → Options → Notifications.
- Tested on MT5 build 6230.
Key terms and guides
- Trade setup
- A trade setup is the full set of conditions that must be in place before you enter a trade: the market context, a price area, an entry trigger, a stop-loss level and a target, all decided in advance.
- Average True Range
- Average True Range (ATR) is a volatility indicator that shows how far price typically moves per candle, gaps included, averaged over a set number of candles. It measures the size of moves, not their direction.
- Broker
- A broker is the company that opens your trading account, holds your deposit, quotes you buy and sell prices and carries out your orders. It earns money through spreads, commissions or overnight fees.
- Every tick based on real ticks
- Every tick based on real ticks is the MT5 Strategy Tester mode that replays the actual bid and ask ticks your broker recorded, with the real changing spread, instead of ticks the tester invents from 1-minute bars.
- Range breakout
- A range breakout happens when price closes beyond the high or low of a sideways range, so a quiet market starts moving in one direction. Traders buy above the top or sell below the bottom.
- Trend line
- A trend line is a straight line drawn across rising swing lows or falling swing highs. Traders use it to read the direction of a trend, time entries when price comes back to it and spot when a trend is failing.
More on this subject: Breakouts & sessions guide, terms and tools
User reviews
No reviews yet. Members who download the tool can review it here.
Sign in and download the tool to review it.
Build a checklist with it
Opening Range Breakout does one job on the chart: zone / level. Put it on the same chart as the tools below and the IndicatorFree panels merge into one checklist card, ordered trend, zone, signal, risk.
- Trend / contextMarket Structure ShiftAdds the trend side: which way the market leans before you act on Opening Range Breakout.
- Entry signalAwesome OscillatorAdds the entry signal: the moment to act once Opening Range Breakout has set the scene.
The Lab has not tested these combinations. Each tool is tested on its own; the card only lines up what each one says. Free members get 2 new tools a day. If one has to wait until tomorrow, install BlackBox to raise the limit to 5 a day (20 on a live account).
FAQ
Does Opening Range Breakout repaint?
No repaint detected. In a 6 Jul 2026 – 2 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 101 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.
Can I use Opening Range Breakout in an EA?
Yes. Read buffer 0 (Bullish ORB Breakout) with iCustom() on bar 1 — the last closed bar.
Why can’t my EA read the zones?
Zones and the panel are chart objects, not indicator buffers, so iCustom() does not return them.
How do I get alerts on my phone?
Enter your MetaQuotes ID under Tools → Options → Notifications, tick "Enable push notifications", and keep the push alert input on.
Does it work on other pairs?
Tested on EURUSD only; other symbols not tested.
What should I set SessionStartHour to?
Set it to the open you trade, expressed in your broker's server time, which is the clock MT5 shows in Market Watch. It is not your local time. The default is 9:00 server time.
Price broke the box, so why is there no arrow?
The bar must close beyond the box edge plus the ATR buffer, with a body of at least BreakoutBodyATRMult × ATR, and only after the opening window has ended. A wick through the edge, a small-bodied close, or a second breakout on the same day will not print an arrow.
Can I get breakout alerts on my phone?
Yes. Turn on EnableAlertPush and the alert goes to the MT5 mobile app linked to your terminal. AlertCooldownMinutes keeps alerts at least 15 minutes apart by default.
Which timeframes and symbols can I use it on?
The Lab tested EURUSD on M15 only. Other intraday charts such as M5 will run it, but their results are untested. On H4 and above the opening window is shorter than one bar, so the box tells you little.
Will it change my chart colors?
Yes. The Theme input (default Dark) recolors the chart when the indicator loads. With RestoreTheme left on, your original colors come back when you remove it.
Changelog
- 1.00Initial release: daily opening-range box with freeze-on-close logic, ATR-filtered breakout signals (buffer + minimum body), Confirmed/Failed tagging over a configurable bar window, rolling Confirmed-rate statistics, and. · 2026-10-09
Final verdict
The Lab's verdict
This tool does one job cleanly. It draws the opening box, filters breakouts by closed-bar ATR distance and candle body, and then records whether each break held. It passed the repaint test with no changed arrows and no delay, so what you see in history is what you would have seen live. The panel's rolling Confirmed rate is useful because it shows whether breakouts on your symbol have been holding lately, without you counting them by hand.
The edge is small. Overall results were only slightly better than a coin flip, and all of the advantage came from bearish arrows. Treat it as a well-built setup finder that still needs your filter, stop and target. It does not supply those.
What it cannot do
- It does not draw stops, targets or position sizes, and the Lab result is a price-move count, not a strategy backtest with costs.
- It marks only the first breakout of each type per day. A retest entry or a second attempt after a Failed break gets no arrow.
- On range days, price can break both sides of the box. Each side may get an arrow, and both can fail.
- The session time is fixed in broker server time. If your broker's server time shifts with daylight saving, recheck
SessionStartHour. - The Lab tested only EURUSD M15 over one 13-week period. Other pairs, indices and timeframes are untested.
Who should skip it
Skip it if you trade swing or position trades on H4 and above. A 30-minute window is shorter than one bar there, so the box carries little information. Also skip it if you want a signal you can follow without a filter, or if you trade a market with no clear daily open.
Settings to start with
On M15, start with the defaults. They are the settings the Lab tested. Then set SessionStartHour and SessionStartMinute to the open you trade, in server time. Two starting points to try, not tested by the Lab, so compare each with the default:
- On M5, try
OpeningRangeMinutes15 for an earlier box. - If the panel shows many Failed tags, try
BreakoutBodyATRMult0.5 to require stronger breakout candles.
- –You trade intraday from a fixed daily session open
- –You want the opening box drawn and frozen for you
- –You add your own filter before taking an arrow
- –You want a running Confirmed rate for your symbol
- –You trade H4 or higher
- –You want stops and targets drawn for you
- –You plan to take every arrow without a filter
- –You need second-chance or retest entries marked





















