Strategy library · Moving averages
EMA 9/21 cross backtest on NQ and ES futures
EMA 9 / 21 cross
Also called: 9 21 EMA crossover, 9 and 21 EMA strategy, EMA crossover strategy, 9 EMA crosses 21 EMA, buy when the 9 EMA crosses above the 21 EMA, short when the 9 EMA crosses below the 21 EMA
What happens if you buy NQ every time the 9 EMA crosses above the 21 EMA?
What it is
An exponential moving average (EMA) weights recent prices more heavily than older ones. This strategy goes long when the 9-period EMA crosses above the 21-period EMA, short when it crosses below, and exits on the opposite cross.
What it did
On NQ futures from 2024-10-08 to 2026-10-07, the EMA 9/21 cross strategy took 549 trades on the 15-minute chart, won 41.5% of them and finished 627.25 points ($12,545 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 285 long trades on the 15-minute chart won 43.9% and made -399.75 points (-$7,995 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the EMA 9/21 cross strategy took 606 trades on the 15-minute chart, won 41.3% of them and finished 153.75 points ($7,688 on one ES contract), before commission and slippage. The 5-minute, 1-hour and daily results for both markets are in the table on this page.
How it was tested
CE Market Solutions tested the EMA 9/21 cross strategy on NQ (2024-10-08 to 2026-10-07) and ES (2024-08-28 to 2026-08-27) futures, before commission and slippage, with each signal filled at the next bar's open, intraday positions flat at 15:59 ET and textbook default indicator settings; the NQ trades are listed on this page and the ES trades under the ES tab.
See it tested with one change · $19
Tested by CE Market Solutions on 2026-10-26. The trades are listed below, one market at a time. Gross, no commission or slippage. Last 2 years.
Results
Rule as tested: Long when EMA 9 crosses above EMA 21; short when it crosses below. Exit: Opposite cross.
| Timeframe | NQ · 2024-10-08 to 2026-10-07 | ES · 2024-08-28 to 2026-08-27 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Trades | Win % | Avg pts | Profit factor | Net pts | Net $ (1 NQ) | Max DD pts | Trades | Win % | Avg pts | Profit factor | Net pts | Net $ (1 ES) | Max DD pts | |
| 5 minute | 1690 | 34.3% | 0.38 | 1.012 | 649.50 | $12,990 | 5,015.75 | 1643 | 36.1% | 0.52 | 1.080 | 856.50 | $42,825 | 449.00 |
| 5 minute · longs only | 849 | 36.4% | — | — | 1,357.50 | $27,150 | 3,011.00 | 822 | 38.1% | — | — | 516.75 | $25,838 | 397.50 |
| 5 minute · shorts only | 841 | 32.2% | — | — | −708.00 | −$14,160 | 3,349.50 | 821 | 34.1% | — | — | 339.75 | $16,988 | 357.25 |
| 15 minute | 549 | 41.5% | 1.14 | 1.025 | 627.25 | $12,545 | 3,680.00 | 606 | 41.3% | 0.25 | 1.026 | 153.75 | $7,688 | 666.25 |
| 15 minute · longs only | 285 | 43.9% | — | — | −399.75 | −$7,995 | 2,631.75 | 298 | 42.0% | — | — | 57.25 | $2,863 | 463.50 |
| 15 minute · shorts only | 264 | 39.0% | — | — | 1,027.00 | $20,540 | 1,779.25 | 308 | 40.6% | — | — | 96.50 | $4,825 | 332.25 |
| 1 hour | 199 | 44.2% | 12.02 | 1.251 | 2,392.50 | $47,850 | 1,657.50 | 209 | 49.3% | 1.89 | 1.187 | 394.75 | $19,738 | 474.25 |
| 1 hour · longs only | 94 | 50.0% | — | — | 1,170.50 | $23,410 | 786.50 | 95 | 51.6% | — | — | 273.50 | $13,675 | 212.50 |
| 1 hour · shorts only | 105 | 39.1% | — | — | 1,222.00 | $24,440 | 1,143.50 | 114 | 47.4% | — | — | 121.25 | $6,063 | 326.50 |
| Daily | 22 | 22.7% | −5.81 | 0.989 | −127.75 | −$2,555 | 6,539.50 | 24 | 20.8% | −39.44 | 0.668 | −946.50 | −$47,325 | 1,599.00 |
| Daily · longs only | 11 | 27.3% | — | — | 4,131.25 | $82,625 | 2,594.50 | 12 | 25.0% | — | — | 450.25 | $22,513 | 470.75 |
| Daily · shorts only | 11 | 18.2% | — | — | −4,259.00 | −$85,180 | 5,557.50 | 12 | 16.7% | — | — | −1,396.75 | −$69,837 | 1,396.75 |
Free to use with credit to CE Market Solutions (CC BY 4.0).
NQ 5 minute: the equity line
Long and short
| Side | Trades | Net pts |
|---|---|---|
| Long | 849 | 1,357.50 |
| Short | 841 | −708.00 |
By month
| Month | Trades | Net pts |
|---|---|---|
| 2024-10 | 54 | 369.75 |
| 2024-11 | 58 | 583.00 |
| 2024-12 | 65 | 254.25 |
| 2025-01 | 74 | −289.50 |
| 2025-02 | 58 | 1,109.25 |
| 2025-03 | 62 | −251.75 |
| 2025-04 | 60 | 1,965.25 |
| 2025-05 | 72 | −766.75 |
| 2025-06 | 69 | −461.00 |
| 2025-07 | 77 | −5.25 |
| 2025-08 | 76 | −176.25 |
| 2025-09 | 62 | −36.75 |
| 2025-10 | 71 | 571.25 |
| 2025-11 | 56 | 1,470.25 |
| 2025-12 | 85 | −1,409.25 |
| 2026-01 | 60 | 543.25 |
| 2026-02 | 59 | −351.75 |
| 2026-03 | 91 | −600.50 |
| 2026-04 | 69 | 483.25 |
| 2026-05 | 84 | −288.75 |
| 2026-06 | 70 | −773.25 |
| 2026-07 | 70 | 356.50 |
| 2026-08 | 94 | −1,878.00 |
| 2026-09 | 85 | −35.00 |
| 2026-10 | 9 | 267.25 |
Every trade, NQ 5 minute1690 trades
Pick any of the 1690 charted trades with Previous, Next or a date, or click a row in the trades table below, to see it drawn on the real 1-minute bars. Drag the chart sideways to move through the sessions around it.
Chart unavailable. The trades are in the table below.
All trades (1690), newest first
Times are New York time; points are gross. Click a row to draw that trade in the chart above.
| Session date | Side | Entry (ET) | Entry price | Exit (ET) | Exit price | Exit reason | Points |
|---|---|---|---|---|---|---|---|
| 2025-10-28 | short | 11:35 | 26029.50 | 11:40 | 26051.50 | opposite cross | −22.00 |
| 2025-10-28 | long | 11:20 | 26046.00 | 11:35 | 26029.50 | opposite cross | −16.50 |
| 2025-10-28 | short | 10:45 | 26023.50 | 11:20 | 26046.00 | opposite cross | −22.50 |
| 2025-10-27 | long | 09:50 | 25833.00 | 15:59 | 25961.00 | end of day 15:59 | 128.00 |
| 2025-10-24 | long | 15:10 | 25559.75 | 15:59 | 25509.50 | end of day 15:59 | −50.25 |
| 2025-10-24 | short | 14:50 | 25537.50 | 15:10 | 25559.75 | opposite cross | −22.25 |
| 2025-10-22 | long | 15:00 | 24957.75 | 15:59 | 25040.50 | end of day 15:59 | 82.75 |
| 2025-10-22 | short | 10:15 | 25211.00 | 15:00 | 24957.75 | opposite cross | 253.25 |
| 2025-10-22 | long | 09:55 | 25280.50 | 10:15 | 25211.00 | opposite cross | −69.50 |
| 2025-10-22 | short | 09:35 | 25184.75 | 09:55 | 25280.50 | opposite cross | −95.75 |
| 2025-10-21 | long | 14:05 | 25313.00 | 15:59 | 25291.25 | end of day 15:59 | −21.75 |
| 2025-10-21 | short | 13:10 | 25287.75 | 14:05 | 25313.00 | opposite cross | −25.25 |
| 2025-10-21 | long | 11:00 | 25297.75 | 13:10 | 25287.75 | opposite cross | −10.00 |
| 2025-10-20 | short | 14:50 | 25317.75 | 15:59 | 25300.25 | end of day 15:59 | 17.50 |
| 2025-10-17 | long | 12:00 | 24849.50 | 15:59 | 24989.00 | end of day 15:59 | 139.50 |
| 2025-10-17 | short | 11:15 | 24741.25 | 12:00 | 24849.50 | opposite cross | −108.25 |
| 2025-10-16 | short | 11:35 | 25059.25 | 15:59 | 24830.75 | end of day 15:59 | 228.50 |
| 2025-10-16 | long | 10:25 | 25085.25 | 11:35 | 25059.25 | opposite cross | −26.00 |
| 2025-10-16 | short | 10:00 | 25062.25 | 10:25 | 25085.25 | opposite cross | −23.00 |
| 2025-10-15 | long | 14:25 | 24901.00 | 15:59 | 24924.50 | end of day 15:59 | 23.50 |
| 2025-10-15 | short | 11:40 | 24999.00 | 14:25 | 24901.00 | opposite cross | 98.00 |
| 2025-10-15 | long | 10:05 | 25038.50 | 11:40 | 24999.00 | opposite cross | −39.50 |
| 2025-10-15 | short | 09:40 | 24935.00 | 10:05 | 25038.50 | opposite cross | −103.50 |
| 2025-10-14 | short | 15:40 | 24827.00 | 15:59 | 24757.25 | end of day 15:59 | 69.75 |
| 2025-10-14 | long | 10:25 | 24688.00 | 15:40 | 24827.00 | opposite cross | 139.00 |
| 2025-10-14 | short | 09:35 | 24561.75 | 10:25 | 24688.00 | opposite cross | −126.25 |
| 2025-10-13 | long | 15:25 | 24939.50 | 15:59 | 24920.50 | end of day 15:59 | −19.00 |
| 2025-10-13 | short | 15:00 | 24901.75 | 15:25 | 24939.50 | opposite cross | −37.75 |
| 2025-10-13 | long | 11:25 | 24866.25 | 15:00 | 24901.75 | opposite cross | 35.50 |
| 2025-10-13 | short | 10:55 | 24783.50 | 11:25 | 24866.25 | opposite cross | −82.75 |
| 2025-10-13 | long | 10:00 | 24887.25 | 10:55 | 24783.50 | opposite cross | −103.75 |
| 2025-10-13 | short | 09:35 | 24759.75 | 10:00 | 24887.25 | opposite cross | −127.50 |
| 2025-10-10 | short | 11:00 | 25193.00 | 15:59 | 24402.25 | end of day 15:59 | 790.75 |
| 2025-10-10 | long | 09:35 | 25328.50 | 11:00 | 25193.00 | opposite cross | −135.50 |
| 2025-10-09 | long | 14:50 | 25221.25 | 15:59 | 25294.50 | end of day 15:59 | 73.25 |
| 2025-10-09 | short | 12:45 | 25240.00 | 14:50 | 25221.25 | opposite cross | 18.75 |
| 2025-10-09 | long | 12:10 | 25267.00 | 12:45 | 25240.00 | opposite cross | −27.00 |
| 2025-10-09 | short | 09:35 | 25307.25 | 12:10 | 25267.00 | opposite cross | 40.25 |
| 2025-10-07 | long | 15:45 | 25066.50 | 15:59 | 25045.25 | end of day 15:59 | −21.25 |
| 2025-10-07 | short | 15:20 | 25036.50 | 15:45 | 25066.50 | opposite cross | −30.00 |
| 2025-10-07 | long | 15:00 | 25053.00 | 15:20 | 25036.50 | opposite cross | −16.50 |
| 2025-10-07 | short | 10:35 | 25222.25 | 15:00 | 25053.00 | opposite cross | 169.25 |
| 2025-10-06 | short | 15:45 | 25210.50 | 15:59 | 25184.25 | end of day 15:59 | 26.25 |
| 2025-10-06 | long | 11:35 | 25172.00 | 15:45 | 25210.50 | opposite cross | 38.50 |
| 2025-10-06 | short | 09:40 | 25163.75 | 11:35 | 25172.00 | opposite cross | −8.25 |
| 2025-10-03 | short | 12:55 | 25120.00 | 15:59 | 24996.75 | end of day 15:59 | 123.25 |
| 2025-10-03 | long | 11:20 | 25130.75 | 12:55 | 25120.00 | opposite cross | −10.75 |
| 2025-10-03 | short | 10:00 | 25105.75 | 11:20 | 25130.75 | opposite cross | −25.00 |
| 2025-10-03 | long | 09:50 | 25151.50 | 10:00 | 25105.75 | opposite cross | −45.75 |
| 2025-10-03 | short | 09:45 | 25133.75 | 09:50 | 25151.50 | opposite cross | −17.75 |
Questions and answers
What happens if you buy NQ every time the 9 EMA crosses above the 21 EMA?
From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the EMA 9/21 cross strategy took 285 long trades, won 43.9% of them and made -399.75 points (-$7,995 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made 1,357.50 points on 849 trades on the 5-minute chart, 1,170.50 points on 94 trades on the 1-hour chart and 4,131.25 points on 11 trades on the daily chart, before commission and slippage.
What happens if you short ES every time the 9 EMA crosses below the 21 EMA?
From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the EMA 9/21 cross strategy took 308 short trades, won 40.6% of them and made 96.50 points ($4,825 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made 339.75 points on 821 trades on the 5-minute chart, 121.25 points on 114 trades on the 1-hour chart and -1,396.75 points on 12 trades on the daily chart, before commission and slippage.
Does the EMA 9/21 cross strategy work on Nasdaq futures?
On NQ futures from 2024-10-08 to 2026-10-07, the EMA 9/21 cross strategy on the 15-minute chart took 549 trades, won 41.5% of them and finished 627.25 points ($12,545 on one NQ contract), before commission and slippage.
What is the win rate of EMA 9 / 21 cross on ES futures?
The EMA 9/21 cross strategy won 41.3% of its 606 trades on the ES 15-minute chart from 2024-08-28 to 2026-08-27, before commission and slippage. On ES from 2024-08-28 to 2026-08-27 it also won 36.1% of 1,643 trades on the 5-minute chart, 49.3% of 209 trades on the 1-hour chart and 20.8% of 24 trades on the daily chart, before commission and slippage.
Is the EMA 9/21 cross strategy better on the 5-minute, 15-minute, 1-hour or daily chart for NQ?
On NQ from 2024-10-08 to 2026-10-07, the EMA 9/21 cross strategy made 649.50 points on 1,690 trades on the 5-minute chart, 627.25 points on 549 trades on the 15-minute chart, 2,392.50 points on 199 trades on the 1-hour chart and -127.75 points on 22 trades on the daily chart, before commission and slippage.
Is it better to only buy or only sell EMA 9/21 cross signals on NQ?
On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made -399.75 points on 285 trades (43.9% won) and the short trades made 1,027.00 points on 264 trades (39.0% won), before commission and slippage.
How many trades does the EMA 9/21 cross strategy take on NQ in two years?
The EMA 9/21 cross strategy took 549 trades on the NQ 15-minute chart from 2024-10-08 to 2026-10-07, before commission and slippage. On NQ from 2024-10-08 to 2026-10-07 it also took 1,690 on the 5-minute chart, 199 on the 1-hour chart and 22 on the daily chart, before commission and slippage.
What is the max drawdown of the EMA 9/21 cross strategy on NQ?
The EMA 9/21 cross strategy had a max drawdown of 3,680.00 points ($73,600 on one NQ contract) on the NQ 15-minute chart from 2024-10-08 to 2026-10-07, before commission and slippage. On NQ from 2024-10-08 to 2026-10-07 its max drawdown was also 5,015.75 points on the 5-minute chart, 1,657.50 points on the 1-hour chart and 6,539.50 points on the daily chart, before commission and slippage.
How does the EMA 9/21 cross strategy do on ES compared with NQ?
On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the EMA 9/21 cross strategy took 606 trades, won 41.3% of them and made 153.75 points ($7,688 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the EMA 9/21 cross strategy took 549 trades, won 41.5% of them and made 627.25 points ($12,545 on one NQ contract), before commission and slippage.
How these were run
- Gross: no commission and no slippage.
- The last 2 years of each market, from the first to the last session of its window.
- A signal on a closed bar fills at the next bar’s open.
- A stop and a target touched in the same minute count as the stop.
- Intraday positions are flat at 15:59 ET.
- Textbook TradingView default settings for every indicator; nothing is tuned.
Want your own rules tested the same way?