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.

TimeframeNQ · 2024-10-08 to 2026-10-07ES · 2024-08-28 to 2026-08-27
TradesWin %Avg ptsProfit factorNet ptsNet $ (1 NQ)Max DD ptsTradesWin %Avg ptsProfit factorNet ptsNet $ (1 ES)Max DD pts
5 minute169034.3%0.381.012649.50$12,9905,015.75164336.1%0.521.080856.50$42,825449.00
5 minute · longs only84936.4%——1,357.50$27,1503,011.0082238.1%——516.75$25,838397.50
5 minute · shorts only84132.2%——−708.00−$14,1603,349.5082134.1%——339.75$16,988357.25
15 minute54941.5%1.141.025627.25$12,5453,680.0060641.3%0.251.026153.75$7,688666.25
15 minute · longs only28543.9%——−399.75−$7,9952,631.7529842.0%——57.25$2,863463.50
15 minute · shorts only26439.0%——1,027.00$20,5401,779.2530840.6%——96.50$4,825332.25
1 hour19944.2%12.021.2512,392.50$47,8501,657.5020949.3%1.891.187394.75$19,738474.25
1 hour · longs only9450.0%——1,170.50$23,410786.509551.6%——273.50$13,675212.50
1 hour · shorts only10539.1%——1,222.00$24,4401,143.5011447.4%——121.25$6,063326.50
Daily2222.7%−5.810.989−127.75−$2,5556,539.502420.8%−39.440.668−946.50−$47,3251,599.00
Daily · longs only1127.3%——4,131.25$82,6252,594.501225.0%——450.25$22,513470.75
Daily · shorts only1118.2%——−4,259.00−$85,1805,557.501216.7%——−1,396.75−$69,8371,396.75

Free to use with credit to CE Market Solutions (CC BY 4.0).

NQ daily: the equity line

EMA 9 / 21 cross, NQ daily, 2024-10-08 to 2026-10-07. Cumulative points after each trade; low −1,119.00, high 5,788.00, last −127.75.

Long and short

SideTradesNet pts
Long114,131.25
Short11−4,259.00

By month

MonthTradesNet pts
2025-012−1,119.00
2025-0211,838.75
2025-0415,068.25
2025-111−269.25
2025-123−1,993.00
2026-014−2,602.00
2026-02140.00
2026-0413,737.50
2026-061−1,223.25
2026-072−1,225.00
2026-081−714.75
2026-094−1,666.00
Every trade, NQ daily22 trades

Daily results show the table and the equity line; there is no chart viewer for them yet.

All trades (22), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-09-22long2026-09-21 18:0030780.002026-10-07 16:5931403.75window end623.75
2026-09-11short2026-09-10 18:0029141.002026-09-21 18:0030780.00opposite cross−1,344.25
2026-09-08long2026-09-07 18:0029611.502026-09-10 18:0029141.00opposite cross−470.50
2026-09-02short2026-09-01 18:0029136.502026-09-07 18:0029611.50opposite cross−475.00
2026-08-10long2026-08-09 18:0029851.252026-09-01 18:0029136.50opposite cross−714.75
2026-07-03short2026-07-02 18:0029566.002026-08-09 18:0029851.25opposite cross−285.25
2026-07-01long2026-06-30 18:0030505.752026-07-02 18:0029566.00opposite cross−939.75
2026-06-29short2026-06-28 18:0029282.502026-06-30 18:0030505.75opposite cross−1,223.25
2026-04-10long2026-04-09 18:0025237.002026-06-28 18:0029282.50opposite cross3,737.50
2026-02-05short2026-02-04 18:0025061.752026-04-09 18:0025237.00opposite cross40.00
2026-01-28long2026-01-27 18:0026111.252026-02-04 18:0025061.75opposite cross−1,049.50
2026-01-20short2026-01-19 18:0025394.752026-01-27 18:0026111.25opposite cross−716.50
2026-01-07long2026-01-06 18:0025831.252026-01-19 18:0025394.75opposite cross−436.50
2026-01-05short2026-01-04 18:0025431.752026-01-06 18:0025831.25opposite cross−399.50
2025-12-26long2025-12-25 18:0025868.002026-01-04 18:0025431.75opposite cross−436.25
2025-12-18short2025-12-17 18:0024983.502025-12-25 18:0025868.00opposite cross−884.50
2025-12-02long2025-12-01 18:0025411.502025-12-17 18:0024983.50opposite cross−672.25
2025-11-17short2025-11-16 18:0025142.252025-12-01 18:0025411.50opposite cross−269.25
2025-04-30long2025-04-29 18:0019599.752025-11-16 18:0025142.25opposite cross5,068.25
2025-02-26short2025-02-25 18:0021230.502025-04-29 18:0019599.75opposite cross1,838.75
2025-01-22long2025-01-21 18:0021809.252025-02-25 18:0021230.50opposite cross−578.75
2025-01-02short2025-01-01 18:0021269.002025-01-21 18:0021809.25opposite cross−540.25

Page 1 of 1

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?