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

Previous session high or low sweep then reverse: does it work on NQ?

A sweep of the previous futures day's or New York session's high or low tested on MNQ from 4 November 2024 to 22 October 2026. Written in Pine Script? Paste it here: a free account with no card runs it on CME Group futures with $2.50 a contract and a tick of slippage charged.

Free plan · unlimited backtests · no card
MNQ previous session sweep and reverse at 1R · the futures day against the New York sessionMNQ1! · 5-minute · 4 November 2024 → 22 October 2026
Futures day over 2 years
+$2,805.50
New York session over 2 years
+$2,207
Futures day 24 Feb 2026 → 22 Oct 2026
+$2,545
Futures day worst drawdown
−$2,059
Previous futures day+$2,805.50
Previous New York session+$2,207
Nov 2024Feb 2026Oct 2026

The $50,000 account after each trade. One MNQ contract pays $2.50 a contract each side and a tick of slippage. Dashed: the previous New York session's high and low. Shaded: from 24 February 2026.

Paste your script

Pine v6, as TradingView has it.

MNQ previous session sweep and reverse at 1R · the futures day against the New York sessionMNQ1! · 5-minute · 4 November 2024 → 22 October 2026
Futures day over 2 years
+$2,805.50
New York session over 2 years
+$2,207
Futures day 24 Feb 2026 → 22 Oct 2026
+$2,545
Futures day worst drawdown
−$2,059
Previous futures day+$2,805.50
Previous New York session+$2,207
Nov 2024Feb 2026Oct 2026

The $50,000 account after each trade. One MNQ contract pays $2.50 a contract each side and a tick of slippage. Dashed: the previous New York session's high and low. Shaded: from 24 February 2026.

At 1R it did.

We ran it on MNQ 5-minute bars from 4 November 2024 to 22 October 2026. A sweep of the previous futures day's high or low reversed with a 1R target made $2,805.50 over 302 trades. It made money in both periods but barely in the first: $260.50 over 201 trades from 4 November 2024 to 23 February 2026 and $2,545 over 101 trades from 24 February 2026 to 22 October 2026. The money came from the highs: shorts after a sweep of the high made $3,881.50 and longs after a sweep of the low lost $1,076. With a 2R target it lost $20.50. The previous New York session's high and low made $2,207 at 1R and lost $3,971 at 2R.

All 4 settings with costs and without

LEVEL · TARGET · COSTSTRADESWON2 YEARS4 NOV 2024 → 23 FEB 202624 FEB 2026 → 22 OCT 2026WORST DRAWDOWN
Futures day · 1R · with costs30258.3%+$2,805.50+$260.50+$2,545−$2,059
Futures day · 2R · with costs30237.4%−$20.50+$716.50−$737−$2,565
New York session · 1R · with costs32258.1%+$2,207−$368+$2,575−$2,328
New York session · 2R · with costs32236.6%−$3,971−$120−$3,851−$5,722.50
Futures day · 1R · no costs30258.3%+$4,530.50+$1,407.50+$3,123−$1,995
Futures day · 2R · no costs30237.4%+$1,740+$1,886−$146−$1,893.50
New York session · 1R · no costs32258.1%+$4,046.50+$843.50+$3,203−$2,124
New York session · 2R · no costs32236.6%−$2,091.50+$1,114−$3,205.50−$4,159

One MNQ contract on a $50,000 account pays $2.50 a contract each side and a tick of slippage. The runs with no costs are the same trades. The 4 settings were fixed before the runs. The worst drawdown is the deepest fall from a high between 4 November 2024 and 22 October 2026.

Highs against lows

With the futures day's levels at 1R, 174 trades reached the target, 123 hit the stop and 5 closed at 16:00. Costs took $1,725 over its 302 trades. Each side of each setting with costs:

LEVEL · TARGETSHORTS AFTER A SWEEP OF THE HIGHLONGS AFTER A SWEEP OF THE LOW
Futures day · 1R+$3,881.50 · 178 trades−$1,076 · 124 trades
Futures day · 2R+$3,639 · 178 trades−$3,659.50 · 124 trades
New York session · 1R+$2,496 · 183 trades−$289 · 139 trades
New York session · 2R−$196.50 · 183 trades−$3,774.50 · 139 trades

The script as it ran

NQ previous futures day sweep and reverse at 1R

A 5-minute bar trades through the previous futures day's high and closes back below it. A bar through its low that closes back above it counts too. From 9:30 to 15:30 New York the trade enters the other way at the next bar's open. The stop sits a tick beyond the sweep's wick and the target at 1R. One trade a day and flat by 16:00. Its inputs switch the previous session to New York hours and set the target.

Trades
302
Won
58.3%
Profit factor
1.20
Net
+5.6%
Worst drawdown
−4.0%
Worst trade
−$1,409.50

MNQ1! · 5-minute · 4 Nov 2024 → 22 Oct 2026 · $2.50 a contract each side and a tick of slippage · one contract on a $50,000 account

+$260.50 from 4 November 2024 to 23 February 2026, +$2,545 from 24 February 2026 to 22 October 2026.

Pine Script v6 · 75 linesRun this script
//@version=6
// Suggested timeframe: 5-minute
strategy("NQ previous session sweep and reverse", overlay=true, initial_capital=50000, default_qty_type=strategy.fixed, default_qty_value=1,
     commission_type=strategy.commission.cash_per_contract, commission_value=2.5, slippage=1, margin_long=0, margin_short=0)

// Inputs: which previous session's high and low, and the target, on New York's clock
levelFrom = input.string("Futures day", "Previous session", options=["Futures day", "New York hours"])
rMult     = input.float(1.0, "Target (R)", minval=0.5, step=0.5)

inRTH    = not na(time(timeframe.period, "0930-1600", "America/New_York"))
canTrade = not na(time(timeframe.period, "0930-1530", "America/New_York")) and not session.islastbar
lastNY   = not na(time(timeframe.period, "1555-1600", "America/New_York"))

// The previous futures day (18:00 to 17:00 New York) and the previous New York session (9:30 to 16:00)
var float dayHi     = na
var float dayLo     = na
var float prevDayHi = na
var float prevDayLo = na
var float rthHi     = na
var float rthLo     = na
var float prevRthHi = na
var float prevRthLo = na
if session.isfirstbar
    prevDayHi := dayHi
    prevDayLo := dayLo
    dayHi     := high
    dayLo     := low
else
    dayHi := math.max(dayHi, high)
    dayLo := math.min(dayLo, low)
if inRTH and not inRTH[1]
    prevRthHi := rthHi
    prevRthLo := rthLo
    rthHi     := high
    rthLo     := low
else if inRTH
    rthHi := math.max(rthHi, high)
    rthLo := math.min(rthLo, low)
pHi = levelFrom == "Futures day" ? prevDayHi : prevRthHi
pLo = levelFrom == "Futures day" ? prevDayLo : prevRthLo

// The sweep: a 5-minute bar trades through the previous session's high and closes back below it
// (short), or through its low and closes back above it (long). The trade enters at the next bar's
// open with the stop a tick beyond the sweep's wick and the target rMult times the risk
var int   tradesToday = 0
var float stopLevel   = na
var float targetLevel = na
if session.isfirstbar
    tradesToday := 0
sweepHi = not na(pHi) and high > pHi and close < pHi
sweepLo = not na(pLo) and low < pLo and close > pLo
if canTrade and strategy.position_size == 0 and tradesToday < 1
    if sweepHi
        stopLevel   := high + syminfo.mintick
        targetLevel := close - (stopLevel - close) * rMult
        strategy.entry("Short", strategy.short)
        strategy.exit("Short exit", from_entry="Short", stop=stopLevel, limit=targetLevel)
        tradesToday += 1
    else if sweepLo
        stopLevel   := low - syminfo.mintick
        targetLevel := close + (close - stopLevel) * rMult
        strategy.entry("Long", strategy.long)
        strategy.exit("Long exit", from_entry="Long", stop=stopLevel, limit=targetLevel)
        tradesToday += 1
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)
// Flat at 16:00, or on the session's last bar when the market closes early (a holiday half day) or
// halts for a long weekend
if lastNY or session.islastbar
    strategy.close_all("Close", immediately=true)

plot(pHi, "Previous high", color=color.new(#16A56A, 0), style=plot.style_linebr)
plot(pLo, "Previous low", color=color.new(#E5484D, 0), style=plot.style_linebr)

Sweeps of the last 20 to 100 candles are tested in our liquidity sweep study.

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 a previous session high or low sweep and reverse work on NQ?

At 1R it did in our test. On MNQ 5-minute bars from 4 November 2024 to 22 October 2026 a sweep of the previous futures day's high or low reversed with a 1R target made $2,805.50 over 302 trades. It made money in both periods but barely in the first: $260.50 over 201 trades to 23 February 2026 and $2,545 over 101 trades from 24 February 2026. With a 2R target it lost $20.50. The previous New York session's levels made $2,207 at 1R and lost $3,971 at 2R.

Which previous session did the test use?

Two. One is the previous futures day from 18:00 to 17:00 New York. The other is the previous New York session from 9:30 to 16:00. The futures day's levels did better at both targets.

What counts as a sweep?

A 5-minute bar that trades through the previous session's high and closes back below it. A bar through its low that closes back above it is a sweep too. From 9:30 to 15:30 New York the trade enters the other way at the next bar's open. Its stop sits a tick beyond the sweep's wick. There is one trade a day and it closes by 16:00.

Did the highs and the lows do the same?

No. With the futures day's levels at 1R, shorts after a sweep of the high made $3,881.50 over 178 trades. Longs after a sweep of the low lost $1,076 over 124.

Did it make money in 2026?

Yes at 1R. From 24 February 2026 to 22 October 2026 the futures day's levels made $2,545 and the New York session's made $2,575. At 2R the futures day's lost $737 there and the New York session's lost $3,851.

Can I run it myself?

Yes. Run opens the script on MNQ 5-minute bars in the Alpha Charts terminal. On a computer, a free account with no card runs it as published on all two years. Its inputs switch the previous session to New York hours and set the target. A changed input or line makes it your own script: a free account then tests the newest 30 days of a chart under an hour. Prop Ready ($39 paid once) opens all two years for 30 days.

Is a backtest a prediction?

No. It is what a strategy's rules would have done on past prices with costs charged. Live fills, news and your own execution differ. Read it as a test of the rules and not as a forecast.

Every number comes from Alpha Charts' tester on MNQ 5-minute bars from 4 November 2024 to 22 October 2026. The runs were made on 27 November 2026. Alpha Charts is software for testing trading scripts and gives no investment advice. A backtest shows what rules would have done on past data. It does not show what they will do. Our methodology is in Data and methodology. Updated 28 November 2026.

Test your Pine Script freeFree account, no cardPaste your script