All scripts
Pro · Invite-only on TradingView
Pro · Invite-only
Opening Range Breakout Pro
The opening range breakout as a daily routine – with a rating of the day before the first breakout happens.
- Type
- Day trading routine + statistics
- Direction
- Long and short
- Recommended
- 5-minute chart, 30-min range
- Markets
- US stocks, ETFs, DAX
Opening Range Breakout Pro draws the opening range of the cash session, rates the day for long and short before a breakout happens, and tells you in plain words whether to get ready or sit this day out. The trade is tracked with stop and exit, and the statistics show the results after costs – including the same trade in the opposite direction as a comparison. Built for day traders on indices and liquid US stocks.
Overview
At a glance
What does it do?
It measures the first 30 minutes of the session, rates the day and shows you whether a breakout is worth taking, and in which direction.
What do I do with it?
After the range, you place a stop order at the edge if the day is rated well – or you deliberately skip the day.
Why?
The first half hour shows where buyers and sellers agree after the overnight news. When price breaks out of this range, that often becomes the trend of the day.
What do I get?
A fixed routine with a clear entry, a clear stop and a clear end of the day – instead of chasing the chart all day long.
On your chart in 3 minutes
Quickstart
- 01
Get access
Opening Range Breakout Pro is an invite-only script. You get access through the script page on TradingView.
- 02
Add it to your chart
At the top of the chart, click Indicators, choose Invite-only on the left and click Opening Range Breakout Pro.
- 03
Pick a market and timeframe
A liquid index ETF or a liquid US stock, for example SPY, on the 5-minute chart. The timeframe has to divide the range length (30 minutes).
- 04
Check the statistics
Switch to the 30-minute chart once. There, TradingView loads several years of history – only then do the statistics say something about your market.
The chart explained
What you see on the chart
- 1Opening range The box over the first 30 minutes.
- 2Signal with day score “▲ LONG 2/3” at the breakout.
- 3Result zone Follows price while the trade is running.
- 4Stop zone Up to the other side of the range.
- 5Exit Result in R, here “EXIT +0.59 R” at the session close.
- 6Skipped breakout Gray when the score was too low.
- 7Range levels for today Range high and low of the last session.
- 8Dashboard Status, day score, statistics and last trades.
How a trading day works
The daily routine
The status line at the very top of the dashboard guides you through the day. All you have to do is read what it says.
| Status | What it means | What you do |
|---|---|---|
| RANGE BUILDING · 12 MIN LEFT | The opening range is forming right now. | Wait. Don’t trade anything yet. |
| ▶ GET READY · LONG 3/3 ABOVE … | One side meets the minimum score. The level is shown with it. | Place a stop order at the level shown and the stop at the other side of the range. |
| ✕ NO SETUP TODAY · LONG 1/3 · SHORT 0/3 · MIN 2 | Neither side meets the minimum score. | Don’t trade today. That’s a decision too. |
| LONG ACTIVE · +0.60 R | The trade is running, current result in R. | Let it run. Don’t move the stop. |
| FIRST BREAKOUT SHORT 1/3 · NO TRADE TODAY | The first breakout was below the minimum score. | No trade today – even if the other side breaks later. |
| DONE TODAY · −1.05 R | The trade is over. | You’re done with this market for the day. No second attempt. |
Elements 1 and 7
The opening range
What does it do?
It draws a box over the high and low of the first 30 minutes and extends both edges to the session close. On top of that come +1R, +2R, −1R and −2R beyond the range.
What do I do with it?
The edges are your entry levels. The height of the range is your risk (1 R) – you size your position from it.
Why?
In the first half hour, the market processes everything that happened overnight. The range shows where both sides agree for now.
What do I get?
An objective entry and an objective stop that form every day by the same rule.
Element 6
The day score
As soon as the range is complete, each side – long and short – gets a score from 0 to 3. Three things are rated: whether the trend of the last few days points in this direction, whether the market opened with a gap in this direction, and whether the range is not unusually wide. The score is fixed before a breakout happens and doesn’t change during the day.
What does it do?
It pre-sorts days: breakouts with a tailwind from yesterday and from the open get more points.
What do I do with it?
You only trade the side that reaches the minimum score. Breakouts below it are marked in gray and aren’t traded.
Why?
A breakout with the trend and with the opening gap has a better chance of becoming a trend day than one against them.
What do I get?
Fewer trades, but better ones on average. On SPY, the result per trade with score 3 rose to more than double that of all breakouts.
Minimum score “Auto”
With “Auto”, the script picks the minimum score for each day itself – and only from breakouts that were completed before that day. So it never knows more than you would have known that morning. The “Signals (auto)” row in the statistics shows what exactly this rule would have delivered day by day. It needs at least 300 past breakouts on the chart for this; with less history, minimum score 2 applies.
Elements 2 to 5
Entry, stop and exit
- Entry: The first break of the range high or low, like a buy-stop or sell-stop order at the level (default). Alternatively, the close of the first candle outside the range.
- One trade per day: Only the first breakout counts. If it’s below the minimum score, there’s no trade today – even if the other side breaks afterwards.
- Stop: Always the other side of the range. It isn’t moved.
- Exit: At the stop or at the session close (default). Optionally at a fixed target of 1R, 2R or 3R.
- No new entries in the last 60 minutes of the session.
Element 8
The dashboard and the statistics
| Section | What it tells you |
|---|---|
| Status line | Where the day stands – see The daily routine. |
| Last session | Range with width in daily ATR, opening gap, relative volume (for information only). |
| Day score | The three criteria for long and short with a check or a cross, and the score. |
| Minimum score / Stop order | The minimum score that applies today (with its source for “Auto”) and the order levels for both sides. |
| Statistics · net | Trades, win rate, avg. R, net R and profit factor – for all breakouts, score ≥ 2, score 3 and your signals. All after costs. |
| Opposite direction | The same trade against the breakout. The most important test. |
| Equity / Last trades | The equity curve of your signals and the last five trades with score, exit and result. |
Recommendations
Which markets fit – and which don’t
An opening range breakout needs a market with a real open: before it, things are quiet; after it, the large participants pour in at the same time. We tested the default settings on the 30-minute chart on 11 markets, after costs and always compared with the opposite direction.
| Market | Period | All breakouts | Score ≥ 2 | Why |
|---|---|---|---|---|
| S&P 500 (ETF SPY) | 2020–2026 | Deep liquidity at the open, the overnight news gets priced in during the first minutes. Opposite direction clearly negative. | ||
| Tesla | 2020–2026 | Very volatile stock with many trend days after the open. Careful: high spreads and slippage in the first minutes. | ||
| Apple | 2020–2026 | Liquid and calmer – the edge is there, but smaller. | ||
| NVIDIA | 2020–2026 | Positive, but only just. Earnings cause gaps that blow up the range. | ||
| DAX future | 2024–2026 | A classic ORB market, but lately often false breakouts – the opposite direction was even slightly positive. Only makes sense with the day score. | ||
| S&P 500 future (ES) | 2025–2026 | Flat over the last almost two years, many reversals after the open. Over the longer term, SPY shows the edge. | ||
| Nasdaq 100 future (NQ) | 2025–2026 | Lately flat to negative. Very fast reversals after the breakout. | ||
| Euro Stoxx 50 future | 2024–2026 | Lately negative, the opposite direction positive: breakouts often turn. Over longer periods it was different – a market in transition. | ||
| Gold | 2025–2026 | No real start of trading: gold trades around the clock, and the New York open is just one moment among many. Opposite direction just as good. | ||
| Crude oil (WTI) | 2025–2026 | Inventory data and OPEC news blow through the range. Clearly negative. | ||
| Bitcoin | 2025–2026 | Trades around the clock, no open in the true sense. No reliable edge. |
Basis: our own test, 30-minute chart, default settings (30-min range, stop order, exit at the session close), costs of 0.005 % per trade. Rated is the average result per trade compared with the opposite direction. ●●● strong, ●●○ solid, ●○○ no reliable edge. The period depends on how much history TradingView loads on the chart. The reasons are our assessment of each market’s characteristics.
Good example: the S&P 500 via the ETF
S&P 500 via the ETF (SPY)
5-minute chart, statistics on the 30-minute chart
- A real open: At 9:30 a.m. New York time, funds, traders and algorithms enter the market at the same time.
- News gets priced in: Whatever happened overnight is released in the first minutes – often with follow-through.
- Long history with a clear comparison: Since 2020 +0.08 R per breakout, with score 3 even +0.21 R. The opposite direction is at −0.05 R.
DAX
only with the day score
- The classic among ORB markets, with a clear Xetra open at 9:00 a.m.
- Since 2024, though, often false breakouts: all breakouts only +0.04 R, the opposite direction +0.07 R.
- With score ≥ 2, the result rises clearly to +0.14 R per trade. Here the filter is a must.
Bad example: gold
Gold
New York session
- No real open: Gold trades almost around the clock. At 9:30 a.m. in New York, the market has been running for hours, and London is in the middle of its day.
- The range means little: The first 30 minutes aren’t a starting signal, just a slice of a day that’s already underway.
- Macro dates instead of the open: US data at 8:30 a.m. New York time and moves in the dollar and interest rates drive gold more than any range.
Crude oil and Bitcoin
same problem
- Both trade around the clock, so an opening range has no special meaning there.
- Oil is also driven by inventory data and OPEC news, Bitcoin by global risk sentiment.
- The lesson: An ORB needs a market that really “wakes up” in the morning.
Which timeframe and which range?
- A 30-minute range on the 5-minute chart is the default, and in our tests it was the best or an equally good variant on every market with an edge.
- Check the statistics on the 30-minute chart: Only there does TradingView load enough history to tell you something.
- 5- and 15-minute ranges deliver more breakouts, but also more false breakouts. Only if your own statistics confirm it.
Both directions
Long and short
Each side gets its own day score. On one day, long can have 3/3 and short 0/3 – or the other way round. The dashboard shows both sides next to each other, with a check or a cross for each criterion. So you know before the breakout which direction the day favors.
The part that makes the difference
How to manage the trades
Before the open
- Check the economic calendar. US data at 8:30 a.m. New York time (2:30 p.m. CET) or a central bank decision in the evening changes the character of the day. If important data comes out during the range, the range is often distorted.
- Earnings for stocks: On the day after earnings, the open is often extreme – the range gets huge, which makes 1 R expensive.
- Skip holidays and half trading days. Without the large participants, there’s no power for a trend day.
- Look at the bigger picture: If a daily high or an important weekly level sits right above the range high, a long has less room.
While the trade is running
- Size the position from the stop: 1 R is the distance from the entry to the other side of the range. With a wide range, a smaller position.
- Let it run. The profit comes from trend days. If you exit at +1 R, you miss the days that pay for everything.
- Don’t move the stop – neither tighter nor wider. A stop in the middle of the range lost in the test on every market.
Over weeks and months
- Plan for losing streaks. With a 40 to 50 % win rate, long streaks of losing trades are normal. Set your risk so that you can sit through them.
- Check the opposite direction row regularly. If it gets better than the breakouts on your market over months, the market has changed.
- Set realistic costs. With stocks and at the open, they’re often higher than 0.005 %.
Don’t miss a thing
Setting up alerts
- 01
Open the alert window
At the top of the chart, click Alert or press
Alt + A. - 02
Choose the condition
Under Condition, select Opening Range Breakout Pro and below it the alert you want.
- 03
Trigger
For the status alerts, “Once per bar” is enough.
- 04
Notification
Choose app, email or webhook and save.
| Alert | When it fires |
|---|---|
| Get ready | One side meets the minimum score. The message includes the buy-stop or sell-stop level and the stop. |
| No setup today | Neither side meets the minimum score – you have the day off. |
| Long breakout / Short breakout | The breakout has happened, the trade is running. |
| Trade closed | The trade is over, with the result in R. |
| Any alert() function call | All of the alerts above in one, with the full text. |
Reference
All settings
Double-click the name “ORB Pro” at the top left of the chart to open the settings. They’re split into six groups.
1 · Opening Range
- SessionDefault: Auto
- Detects the session from the symbol: New York 9:30, Xetra 9:00, London 8:00. “Custom” for your own times.
- Custom session / time zoneDefault: 09:30–16:00 / New York
- Only with “Custom”: trading hours and time zone.
- Range length (minutes)Default: 30
- 5, 15, 30 or 60 minutes. The chart timeframe has to divide the length.
- No new entries in the last (minutes)Default: 60
- No new trades shortly before the session close.
2 · Signals
- EntryDefault: Break of the range
- Break of the range: like a stop order at the level. Close beyond the range: only after a close outside.
- DirectionDefault: Long & Short
- Long only, short only or both.
- Minimum day scoreDefault: Auto
- A fixed minimum score from 0 to 3, or “Auto” from the past breakouts on your chart.
- ExitDefault: Session close
- Exit at the session close or at a fixed target of 1R, 2R or 3R.
3 · Day Score
- Trend / Gap / Range widthDefault: Default
- The basis of the three score criteria. The defaults are tested – only change them if you check the effect in the statistics.
4 · Chart
- R levels beyond the range (today)Default: on
- +1R, +2R, −1R and −2R for the current day.
- Trade zonesDefault: on
- Result zone and stop zone of the trade.
- Mark breakouts below the minimum scoreDefault: on
- Mark skipped breakouts in gray.
- Days kept on the chartDefault: 10
- How many days stay visible. Colors for range, long and short.
5 · Dashboard
- Theme / Position / Text sizeDefault: Auto / Top right / Small
- “Auto” adapts to a light or dark chart.
- Last tradesDefault: on / 5
- The last trades in the dashboard.
- Costs per trade (% of price)Default: 0.005
- Costs per trade (round trip), deducted from every result. Set them to your real costs.
6 · Trade History
- Show trade historyDefault: off
- An extra table with up to 40 trades.
From practice
Common mistakes
- Taking profits too early. The profit comes from a few trend days. If you cut them short, you only keep the losses.
- Starting a second attempt. Only the first breakout counts – that’s how the strategy is built and tested. A trade on the other side after a stop is a new, untested system.
- Ignoring “No setup today”. A skipped day costs nothing.
- Trading markets without a real open. Gold, oil and Bitcoin had no edge in the test.
- Judging the statistics on the 5-minute chart. One year is too short – look at the 30-minute chart.
- Underestimating costs. Especially at the open, spreads are wider than during the rest of the day.
FAQ
Does Opening Range Breakout Pro repaint?
No. The day score and range levels are fixed with the close of the last range candle. With the default entry, the signal appears as soon as the level is touched and then stays in place. Past signals don’t change.
Why is there no trade today even though price broke out?
Either the first breakout was below the minimum score (“FIRST BREAKOUT … NO TRADE TODAY”), or a trade had already run that day. Only the first breakout ever counts.
Which chart timeframe is right?
One that divides the range length – for the 30-minute range, for example, the 5-minute chart. For the statistics, use the 30-minute chart, because it loads more history.
What does “Auto” mean for the minimum score?
Each day, the script picks the minimum score that has worked best on your chart so far – using only breakouts before that day. It needs at least 300 past breakouts for this, otherwise score 2 applies.
Does it work on forex or crypto?
Technically yes, the session can be set freely. In our tests, markets without a real open – gold, oil, Bitcoin – showed no reliable edge.
Why is the win rate so low?
Because the stop sits at the other side of the range and the trade runs until the session close. Many days end with a small loss, a few with a big gain. That’s normal for breakout strategies.
How do I get access?
Opening Range Breakout Pro is an invite-only script on TradingView. The button on this page takes you to the script page. Once access is granted, you’ll find it on the chart under Indicators → Invite-only.
How do you like Opening Range Breakout Pro?
Your vote tells us what to work on next.
Support
Report a problem or share feedback
Something off with the script, unclear in the docs, or you have an idea? Write to us. We reply by email.
Opening Range Breakout Pro
The opening range breakout as a daily routine: range, day rating, breakout and management.
For educational and analytical purposes only. Not financial advice. Signals, levels and statistics are not recommendations to buy or sell. All statistics are hypothetical, calculated on historical candles with assumed executions; real spreads, slippage and fees can be higher than the costs set. Past results are no guarantee of future results. Trading involves a risk of loss.