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).

ES daily: the equity line

EMA 9 / 21 cross, ES daily, 2024-08-28 to 2026-08-27. Cumulative points after each trade; low −946.50, high 652.50, last −946.50.

Long and short

SideTradesNet pts
Long12450.25
Short12−1,396.75

By month

MonthTradesNet pts
2024-092−154.25
2024-112−314.50
2024-121−149.50
2025-011−112.00
2025-021415.75
2025-051967.00
2025-111−158.25
2025-123−286.25
2026-012−329.50
2026-023−218.00
2026-041401.25
2026-063−536.00
2026-072−433.25
2026-081−39.00
Every trade, ES daily24 trades

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

All trades (24), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-08-05long2026-08-04 18:007772.002026-08-27 16:597733.00window end−39.00
2026-07-24short2026-07-23 18:007450.502026-08-04 18:007772.00opposite cross−321.50
2026-07-06long2026-07-05 18:007562.252026-07-23 18:007450.50opposite cross−111.75
2026-06-25short2026-06-24 18:007476.252026-07-05 18:007562.25opposite cross−86.00
2026-06-16long2026-06-15 18:007626.502026-06-24 18:007476.25opposite cross−150.25
2026-06-11short2026-06-10 18:007259.252026-06-15 16:597559.00opposite cross−299.75
2026-04-10long2026-04-09 18:006858.002026-06-10 18:007259.25opposite cross401.25
2026-02-13short2026-02-12 18:006865.502026-04-09 18:006858.00opposite cross60.00
2026-02-12long2026-02-11 18:006964.502026-02-12 18:006865.50opposite cross−99.00
2026-02-06short2026-02-05 18:006785.502026-02-11 18:006964.50opposite cross−179.00
2026-01-27long2026-01-26 18:006977.002026-02-05 18:006785.50opposite cross−191.50
2026-01-21short2026-01-20 18:006839.002026-01-26 18:006977.00opposite cross−138.00
2025-12-23long2025-12-22 18:006930.752026-01-20 18:006839.00opposite cross−91.75
2025-12-19short2025-12-18 18:006824.752025-12-22 18:006930.75opposite cross−106.00
2025-12-01long2025-11-30 18:006854.752025-12-18 18:006824.75opposite cross−88.50
2025-11-18short2025-11-17 18:006696.502025-11-30 18:006854.75opposite cross−158.25
2025-05-01long2025-04-30 18:005617.502025-11-17 18:006696.50opposite cross967.00
2025-02-26short2025-02-25 18:005982.002025-04-30 18:005617.50opposite cross415.75
2025-01-22long2025-01-21 18:006094.002025-02-25 18:005982.00opposite cross−112.00
2024-12-20short2024-12-19 18:005944.502025-01-21 18:006094.00opposite cross−149.50
2024-11-07long2024-11-06 18:005963.502024-12-19 18:005944.50opposite cross−92.75
2024-11-04short2024-11-03 18:005741.752024-11-06 18:005963.50opposite cross−221.75
2024-09-16long2024-09-15 18:005622.752024-11-03 18:005741.75opposite cross58.50
2024-09-09short2024-09-08 18:005410.002024-09-15 18:005622.75opposite cross−212.75

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?