Black Friday: 2 years for the price of 1.Or 3 months for the price of 1. On Pro.2 d 6 hleftSee plans →

Strategy library · NQ futures

NQ 30-minute opening range breakout

Net profit
+$9,583
+19.2%
Max drawdown
8.3%
the worst dip
Profit factor
1.15
52% won
Trades
424
two years

MNQ 5-minute, 23 October 2024 to 22 October 2026, a target of once the risk, costs included. The last 8 months, judged on their own: +1.6%.

Run this script free

Opens on MNQ 5-minute with the backtest done. Free account, no card.

The account: $50,000 to $59,583 after costs, after each of 424 trades

high $62,816, 14 Maylast 8 months
+$29 a trade over the first 295+$7 a trade over the last 129

Drawdown, closed trades: worst -7.7% on 23 Jun 2025

Every trade: wins up, losses down. Best +$591, worst −$595

Each month

Oct 2024From 24 Feb 2026, the last 8 monthsOct 2026

The opening range study's script with a 30-minute range, 9:30 to 10:00 New York, run on two years of MNQ with costs. With a target of once the risk it made 19.2% over the two years on 424 trades: +17.3% in the first 16 months and +1.6% in the 8 months after, judged on their own, the only one of the study's 24 versions up in those months. Every target from 1 to 3 times the risk made money over the two years, from +5.7% to +19.2%; at twice the risk it made 9.4% in the first 16 months and lost 3.4% after.

  • Checked 16 November 2026
  • MNQ1! and MES1! 5-minute, 23 October 2024 → 22 October 2026 · 2 years · 517 sessions
  • $0.75 a contract each side + 1 tick of slippage
  • $50,000 account, 1% risk, one trade a day
  • last 8 months judged alone, from 24 February 2026
  • Updated 24 November 2026

The rules

The opening range study's script with one change, the range. Nothing was tuned on these bars.

  1. The range: the high and low from 9:30 to 10:00 New York.
  2. The entry: the first 5-minute close outside the range between 10:00 and 12:00 New York, long above and short below, filled at the next candle's open.
  3. The stop: the other side of the range. The target: 1, 1.5, 2 or 3 times the risk.
  4. The size: contracts from a 1% risk over the stop's dollars, with two ticks of slippage counted, at most 10. A stop too wide for one contract skips the trade.
  5. One trade a day, and flat on the session's last candle.

All 8 versions with a 30-minute range

Net return on the $50,000 account after costs, the last 8 months first: 24 February 2026 → 22 October 2026.

VersionLast 8 monthsFirst 16 monthsTwo yearsTradesWonProfit factor
MNQ · 1R+1.6%+17.3%+19.2%42452.1%1.15
MNQ · 1.5R-3.6%+11.5%+7.5%42248.3%1.06
MNQ · 2R-3.4%+9.4%+5.7%42147.5%1.04
MNQ · 3R-0.1%+7.6%+7.5%42147.3%1.06
MES · 1R-4.0%+2.5%-1.5%49050.6%0.99
MES · 1.5R-5.9%+0.6%-5.4%49045.7%0.97
MES · 2R-6.9%+0.2%-6.7%49044.7%0.96
MES · 3R-0.5%+9.9%+9.4%49044.7%1.05

On MNQ every target made money in the first 16 months, from +7.6% to +17.3%. In the last 8 months only the 1R version was up, by 1.6%; the others ended between -3.6% and -0.1%. On MES all four lost money in the last 8 months, between -6.9% and -0.5%.

The library carries the 1R version because it was the one up in the last 8 months. Picked from eight after seeing them, one small gain is thin proof on its own; the months after 22 October 2026 are the real test. All 24 versions, with 5 and 15-minute ranges too, are on the opening range study.

The script

Copy it into TradingView, or press Run and it opens on MNQ 5-minute in the terminal with its backtest done. The other versions change only the target.

MNQ opening range breakout, 30-minute range, 1R

The range from 9:30 to 10:00 New York, long on the first 5-minute close above it and short below until 12:00, the stop at the other side, the target at once the risk, one trade a day and flat at the session's end.

Trades
424
Won
52.1%
Profit factor
1.15
Net
+19.2%
Worst drawdown
−8.3%
Worst trade
−$595

MNQ1! · 5-minute · 23 October 2024 → 22 October 2026 · 2 years · 517 sessions · $0.75 a contract each side, one tick of slippage, $50,000 account, 1% risk

+17.3% in the first 16 months, +1.6% in the last 8. 52.1% of trades won.

Pine Script v6 · 80 linesRun this script
//@version=6
// Suggested timeframe: 5-minute
strategy("MNQ Opening Range Breakout", overlay=true, initial_capital=50000, default_qty_type=strategy.fixed, default_qty_value=1,
     commission_type=strategy.commission.cash_per_contract, commission_value=0.75, slippage=1, margin_long=0, margin_short=0)

// Inputs
orSess       = input.session("0930-1000", "Opening range (New York)")
tradeSess    = input.session("1000-1200", "Entry window (New York)")
riskPct      = input.float(1.0, "Risk % per trade", minval=0.1, step=0.1)
rMult        = input.float(1.0, "Target (R)", minval=0.5, step=0.5)
maxContracts = input.int(10, "Max contracts", minval=1)
maxTrades    = input.int(1, "Max trades per day", minval=1)

// The clock is New York's; a future's day starts at the 18:00 New York reopen
inOR    = not na(time(timeframe.period, orSess, "America/New_York"))
inTrade = not na(time(timeframe.period, tradeSess, "America/New_York"))

// The day's state: every level, flag and count the setup keeps, declared here and set back on the day's first bar
var float orHigh      = na
var float orLow       = na
var int   tradesToday = 0
var bool  doneToday   = false
var float stopLevel   = na
var float targetLevel = na
if session.isfirstbar
    orHigh      := na
    orLow       := na
    tradesToday := 0
    doneToday   := false

// The setup: the first close outside the 30-minute opening range
if inOR
    orHigh := na(orHigh) ? high : math.max(orHigh, high)
    orLow  := na(orLow) ? low : math.min(orLow, low)
rangeSet   = not inOR and not na(orHigh)
longSetup  = rangeSet and close > orHigh and close[1] <= orHigh
shortSetup = rangeSet and close < orLow and close[1] >= orLow
longStop   = orLow
shortStop  = orHigh

// A win ends the day: counted before the entries, so the bar it closes on opens nothing; a winner held to the
// session's end is booked on the next session's first bar and ends nothing there
if strategy.closedtrades > strategy.closedtrades[1] and strategy.closedtrades.profit(strategy.closedtrades - 1) > 0 and not session.isfirstbar
    doneToday := true

// Entries: inside the window, flat, under the day's caps; the qty from the risk (a stop too wide skips the
// trade), the stop and target placed with the entry
canTrade = inTrade and strategy.position_size == 0 and tradesToday < maxTrades and not doneToday and barstate.isconfirmed
riskCash = math.max(strategy.equity, 0) * riskPct / 100
if canTrade and longSetup and not na(longStop) and longStop < close
    stopPts = close - longStop
    qty = math.min(maxContracts, math.floor(riskCash / ((stopPts + 2 * syminfo.mintick) * syminfo.pointvalue)))
    if qty >= 1
        stopLevel   := longStop
        targetLevel := close + stopPts * rMult
        strategy.entry("Long", strategy.long, qty=qty)
        strategy.exit("Long exit", from_entry="Long", stop=stopLevel, limit=targetLevel)
        tradesToday := tradesToday + 1
if canTrade and shortSetup and not na(shortStop) and shortStop > close
    stopPts = shortStop - close
    qty = math.min(maxContracts, math.floor(riskCash / ((stopPts + 2 * syminfo.mintick) * syminfo.pointvalue)))
    if qty >= 1
        stopLevel   := shortStop
        targetLevel := close - stopPts * rMult
        strategy.entry("Short", strategy.short, qty=qty)
        strategy.exit("Short exit", from_entry="Short", stop=stopLevel, limit=targetLevel)
        tradesToday := tradesToday + 1

// The same stop and target on every bar of the trade; flat on the session's last bar
if strategy.position_size > 0
    strategy.exit("Long exit", from_entry="Long", stop=stopLevel, limit=targetLevel)
if strategy.position_size < 0
    strategy.exit("Short exit", from_entry="Short", stop=stopLevel, limit=targetLevel)
if session.islastbar
    strategy.close_all("Session end", immediately=true)

plot(rangeSet ? orHigh : na, "Range high", color=color.new(#16A56A, 0), style=plot.style_linebr)
plot(rangeSet ? orLow : na, "Range low", color=color.new(#E5484D, 0), style=plot.style_linebr)
plotshape(canTrade and longSetup, "Long", style=shape.triangleup, location=location.belowbar, color=color.new(#16A56A, 0), size=size.tiny)
plotshape(canTrade and shortSetup, "Short", style=shape.triangledown, location=location.abovebar, color=color.new(#E5484D, 0), size=size.tiny)

5, 15 or 30 minutes

The opening range study's script with a target of twice the risk, the range its only change. On MNQ the longer the range, the less it made and the less it lost; on MES the 15-minute range lost least in the last 8 months.

RangeLast 8 monthsFirst 16 monthsTradesWorst drawdown
MNQ · 5 minutes-20.3%+57.5%514-24.2%
MNQ · 15 minutes-13.7%+30.0%499-20.9%
MNQ · 30 minutes-3.4%+9.4%421-13.3%
MES · 5 minutes-9.5%+3.8%515-26.7%
MES · 15 minutes-4.9%+35.2%512-16.1%
MES · 30 minutes-6.9%+0.2%490-19.3%

The published 5-minute rule run the same way: the 5-minute opening range breakout. Every version with targets from 1 to 3 times the risk: the opening range study. Going in at 10:00 in the half hour's direction without waiting for a breakout, and the published rule that the first half hour predicts the last: the New York open on NQ.

Run your version free

Change the range, the target or the risk, or paste your own ORB. It runs free on the newest 30 days with the same costs, every trade on the chart, and on all two years with Prop Ready.

Free account

No card, no time limit.

$0
  • Unlimited backtests, costs charged, with the out-of-sample check
  • The Pine script audit and the full trade list
  • The Pine Copilot writes and edits your script
  • 50 AI credits a day
The Alpha Charts terminal a free account opens: the Pine Copilot beside the chart

Prop Ready opens all two years of futures minute bars on a computer for $39 paid once and has 7 days money back. Pro adds the optimiser and every AI tool and has 30 days money back. See the plans

Questions

Does the 30-minute opening range breakout work on NQ?

On these two years, after costs, at a target of once the risk: +19.2% on MNQ over 424 trades with a profit factor of 1.15, and +1.6% in the last 8 months judged on their own, the only one of the study's 24 versions up in those months. Every target made money over the two years, from +5.7% to +19.2%; at twice the risk it made 9.4% in the first 16 months and lost 3.4% in the last 8.

Is a 30-minute opening range better than 15 minutes on NQ?

It made less and lost less. On MNQ at twice the risk the 30-minute range made +9.4% and then -3.4%, the 15-minute +30.0% and then -13.7%, the 5-minute +57.5% and then -20.3%. It traded 421 times against 499 and 514, and its worst drawdown was 13.3% against 20.9% and 24.2%. Losing less is not the same as working.

What target works best with a 30-minute range?

On MNQ, 1R: +17.3% in the first 16 months and +1.6% in the last 8, the only one of the eight versions up in those months, which is why the library carries it. Picked from eight after seeing them, one small gain is thin proof on its own: the months after 22 October 2026 are the real test.

Does the 30-minute opening range breakout work on ES?

Not here. On MES it lost money in the last 8 months at every target, between -6.9% and -0.5%; with a target of twice the risk it made 0.2% in the first 16 months and lost 6.9% after.

Can I run my own version?

Yes. Run this script opens the Alpha Charts terminal on MNQ 5-minute with the script on the chart and its backtest done. Change the range, the target or the risk, or ask the Copilot to, and run it again. A free account runs as many tests as you like, no card.

Every number here is the Alpha Charts backtest engine on 16 November 2026, on MNQ1! and MES1! 5-minute bars from 23 October 2024 to 22 October 2026, the opening range study's two years, with the costs above; the study's runs of 6 November 2026 gave the same figures. A backtest describes the past; it is not a forecast or advice.

The 30-minute NQ ORBFree account, no cardRun it free