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

Does a 9/21 EMA crossover with a 3R target make money on MNQ after costs?

We ran it on MNQ 5-minute bars from 4 November 2024 to 22 October 2026 round the clock and in New York hours with costs and without. 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's 9/21 EMA crossover at 3R round the clock · with costs against noneMNQ1! · 5-minute · 4 November 2024 → 22 October 2026
With costs over 2 years
−$19,072.50
No costs over 2 years
+$17,201.50
What the costs took
$36,274
Trades
6,171
With $2.50 a side and a tick−$19,072.50
With no costs+$17,201.50
Nov 2024Feb 2026Oct 2026

The $50,000 account at each day's end. One MNQ contract pays $2.50 a contract each side and a tick of slippage. Dashed: the same trades with no costs. Shaded: from 24 February 2026.

Paste your script

Pine v6, as TradingView has it.

MNQ's 9/21 EMA crossover at 3R round the clock · with costs against noneMNQ1! · 5-minute · 4 November 2024 → 22 October 2026
With costs over 2 years
−$19,072.50
No costs over 2 years
+$17,201.50
What the costs took
$36,274
Trades
6,171
With $2.50 a side and a tick−$19,072.50
With no costs+$17,201.50
Nov 2024Feb 2026Oct 2026

The $50,000 account at each day's end. One MNQ contract pays $2.50 a contract each side and a tick of slippage. Dashed: the same trades with no costs. Shaded: from 24 February 2026.

Not after costs.

Before costs it made money in both periods we tested, round the clock and in New York hours. We ran the cross on MNQ 5-minute bars from 4 November 2024 to 22 October 2026 with a stop of 1R and a target of 3R. Round the clock it traded 6,171 times and made $17,201.50 before costs. With $2.50 a contract each side and a tick of slippage it lost $19,072.50. Costs took $36,274: $5.88 a trade against the $2.79 a trade the cross made before them. In New York hours it traded 1,723 times. It made $7,640 before costs and lost $2,525 after.

All 4 runs

HOURS AND COSTSTRADESWON2 YEARS4 NOV 2024 → 23 FEB 202624 FEB 2026 → 22 OCT 2026WORST DRAWDOWN
Round the clock · with costs6,17126.5%−$19,072.50−$18,583−$489.50−$22,946.50
Round the clock · no costs6,17127.2%+$17,201.50+$5,364+$11,837.50−$5,218.50
New York hours · with costs1,72329.3%−$2,525−$2,050−$475−$7,522
New York hours · no costs1,72329.8%+$7,640+$4,429+$3,211−$5,326

One MNQ contract on a $50,000 account. New York hours enters on crosses from 9:30 and is flat by 16:00 or the market's early close. The no-cost runs are the same trades with commission and slippage set to zero. The worst drawdown is the deepest fall from a high between 4 November 2024 and 22 October 2026. The 4 runs were fixed before they ran. One round-the-clock trade was still open when the bars ended and is left out.

Where the money went

Each trade paid $5 of commission for the round trip and $0.50 or $1 of slippage. A target fills as a limit order with no slippage. Round the clock that came to $30,855 of commission and $5,419 of slippage over 6,171 trades. In New York hours it came to $8,615 and $1,550 over 1,723 trades. With costs both lost money in both periods. Round the clock the account with costs fell $22,946.50 from its high.

Round the clock 5,429 trades ended at their stop or target and 742 when the opposite cross turned them around. In New York hours 1,360 ended at the stop or target, 197 on an opposite cross and 160 at 16:00. The other 6 closed before 16:00 on the last bar of a holiday half day.

The script as it ran

9/21 EMA crossover with a 3R target

The 9-bar EMA crossing above the 21-bar EMA enters long at the next bar's open and crossing below enters short. 1R is the 14-bar ATR at the cross. The stop sits 1R away and the target 3R. An opposite cross turns the trade around. Its inputs set the two EMAs, 1R, the target and New York hours.

Trades
6,171
Won
26.5%
Profit factor
0.91
Net
−38.1%
Worst drawdown
−45.8%
Worst trade
−$621

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

−$18,583 from 4 November 2024 to 23 February 2026, −$489.50 from 24 February 2026 to 22 October 2026.

Pine Script v6 · 42 linesRun this script
//@version=6
// Suggested timeframe: 5-minute
strategy("9/21 EMA crossover with a 3R target", 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: the two EMAs, the risk (1R is the 14-bar ATR at the cross), the target and the hours
fastLen = input.int(9, "Fast EMA", minval=1)
slowLen = input.int(21, "Slow EMA", minval=2)
atrLen  = input.int(14, "ATR length", minval=1)
riskAtr = input.float(1.0, "Stop: ATR multiple (1R)", minval=0.1, step=0.1)
rMult   = input.float(3.0, "Target (R)", minval=0.5, step=0.5)
nyOnly  = input.bool(false, "New York hours only (9:30 to 16:00 and flat by the close)")

fast   = ta.ema(close, fastLen)
slow   = ta.ema(close, slowLen)
atr    = ta.atr(atrLen)
inNY   = not na(time(timeframe.period, "0930-1600", "America/New_York"))
lastNY = not na(time(timeframe.period, "1555-1600", "America/New_York"))
canEnter = not nyOnly or (inNY and not lastNY and not session.islastbar)

// A cross enters at the next bar's open, and an opposite cross turns the trade around. The stop sits
// 1R from the cross bar's close and the target 3R the other way
var float stopLevel   = na
var float targetLevel = na
risk = atr * riskAtr
if ta.crossover(fast, slow) and canEnter
    stopLevel   := close - risk
    targetLevel := close + risk * rMult
    strategy.entry("Long", strategy.long)
    strategy.exit("Long exit", from_entry="Long", stop=stopLevel, limit=targetLevel)
if ta.crossunder(fast, slow) and canEnter
    stopLevel   := close + risk
    targetLevel := close - risk * rMult
    strategy.entry("Short", strategy.short)
    strategy.exit("Short exit", from_entry="Short", stop=stopLevel, limit=targetLevel)
// With New York hours only, a trade still open closes 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 nyOnly and (lastNY or session.islastbar)
    strategy.close_all("Close", immediately=true)

plot(fast, "Fast EMA", color=color.new(#3D69A8, 0))
plot(slow, "Slow EMA", color=color.new(#E5A50A, 0))

The same cross on stocks is in our EMA crossover study. A fixed target against a trailing stop on NQ is tested in Trailing stop or fixed target on NQ's opening range.

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 9/21 EMA crossover with a 3R target make money on MNQ after costs?

Not in our test. Round the clock it made $17,201.50 before costs and lost $19,072.50 after them on MNQ 5-minute bars from 4 November 2024 to 22 October 2026. In New York hours it made $7,640 before costs and lost $2,525 after. Costs were $5.88 a trade. Before costs the cross made $2.79 a trade round the clock and $4.43 in New York hours.

How much did costs take?

$36,274 over 6,171 trades round the clock: $30,855 of commission and $5,419 of slippage. Each trade paid $2.50 a contract each side and a tick of slippage on its market and stop fills. A target is a limit order and fills with no slippage.

Does trading only New York hours help?

It traded less and lost less: 1,723 trades and −$2,525 against 6,171 and −$19,072.50 round the clock. Before costs it made $4.43 a trade there. The costs took $5.90 a trade.

What is 1R in this test?

The 14-bar ATR at the cross. The stop sits 1R from the cross bar's close and the target 3R the other way. An opposite cross before either turns the trade around. Pine's strategy.entry does that by default.

Did it make money in 2026?

Not with costs. From 24 February 2026 to 22 October 2026 it lost $489.50 round the clock and $475 in New York hours. Without costs it made $11,837.50 round the clock and $3,211 in New York hours.

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 set the two EMAs, 1R, the target and New York hours. 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