Skip to content
Scan guide

Opening Range Breakout Scanner

Stocks trading above the high of their first minutes.

What the setup is

The opening range is the high and low a stock makes in the first minutes after the 09:30 open. Five minutes is the most common length, and 15 and 30 minutes are also widely used. An opening range breakout (ORB) is the moment the price trades above that high, or below that low, later in the session.

Traders watch it because the first minutes of the day absorb overnight news and the opening auction. The range that forms is a level many people are looking at, so a move through it tends to get noticed.

A scan for it has two parts. It first has to know each stock's opening range, which is a fact about a fixed window of time. It then has to check, on every trade after that window closes, whether the price is above the high.

The scan as a sentence

In Fastur you can describe the scan in plain English. For this setup the sentence looks like this:

stocks breaking above their 5 minute opening range high

The assistant turns that into code you can read. The core of it is below. It is a fragment that shows the idea, not a complete script.

OrHigh = m1.high[t"09:30":t"09:34"].max
logicblock OrbBreak = clock.time >= 34500 and trade.last > OrHigh

What each part checks

m1.high[t"09:30":t"09:34"].max
The highest high of the five one-minute bars from 09:30 to 09:34. This is the opening range high. It is fixed once 09:35 arrives.
clock.time >= 34500
Only after 09:35. The clock is counted in seconds since midnight Eastern, and 34500 is 09:35:00. Without this, a stock would match while its range is still forming.
trade.last > OrHigh
The last trade is above the opening range high. This is checked on every trade.

The choices that change the results

How long the range is
Change the end of the window to 09:44 for a 15 minute range or 09:59 for 30 minutes, and move the clock condition with it. A longer range gives fewer and later breakouts.
Whether volume has to confirm
Many traders only want breakouts on unusual volume. Add a relative volume condition so quiet stocks drifting through their range are left out.
How fresh the breakout is
As written, a stock that broke out at 09:40 still matches at 14:00 if it is above the level. To see only new breakouts, add a condition that the price was at or below the level a few minutes ago.
Which stocks are eligible
A price floor and a minimum average volume remove stocks that are hard to trade. Those belong in the scan, not in your head.

Common mistakes

Using the high of the day as the opening range
After the first minutes the high of the day keeps moving. The opening range high does not. A scan built on the day high finds new highs, which is a different setup.
Counting premarket
The opening range starts at 09:30. If the window includes premarket bars, the level is the premarket high, and most stocks will never look like they broke out.
Checking once a minute
A breakout happens on one trade. A scan that runs on a timer shows it up to a minute late, and can miss one that broke and failed in between.

Questions

What is an opening range breakout?
It is a move above the high, or below the low, that a stock set in the first minutes after the market opened. The range is usually measured over the first 5, 15 or 30 minutes.
What is the best opening range length?
There is no single best length. Five minutes reacts fastest and produces the most signals. Fifteen and thirty minutes produce fewer signals from a more established range. Test the length against the stocks and time of day you trade.
Can a scanner find opening range breakouts in real time?
Yes, if it stores each stock's opening range and checks the price against it on every trade. Scanners that only compare current values, or that refresh on a timer, either cannot express the range or report the break late.
Build the scan

Write a scan, then run it live

Create the logic once, run it live, and let scanner alerts tell you what changed.

LogicBlocks
Scanner-ready custom calculations
VWAP_HOLD
trade.last > d1.vwap and trade.last > m1.high[t"04:00":t"09:29"].max
in scan
REL_VOL
d1.volume / d1.volume[1:20].mean
column
GAP_PCT
(d1.open - d1.close[1]) / d1.close[1] * 100
filter
RANGE_PCT
(d1.high - d1.low) / d1.low * 100
saved
Used by VWAP Hold3 matches