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 5 minute: the equity line

EMA 9 / 21 cross, ES 5 minute, 2024-08-28 to 2026-08-27. Cumulative points after each trade; low −1.75, high 1,128.75, last 856.50.

Long and short

SideTradesNet pts
Long822516.75
Short821339.75

By month

MonthTradesNet pts
2024-08573.25
2024-0963133.75
2024-1057−16.75
2024-116656.75
2024-1267164.75
2025-0170−47.00
2025-0273159.50
2025-036454.75
2025-0471375.00
2025-0579−367.25
2025-066626.25
2025-076227.50
2025-0869−27.00
2025-0968−45.75
2025-1068351.25
2025-1166130.00
2025-1269−216.25
2026-016543.25
2026-025976.25
2026-0393−80.75
2026-0467−60.25
2026-05670.50
2026-0669−40.50
2026-0772185.00
2026-0868−99.75
Every trade, ES 5 minute1643 trades

Pick any of the 1643 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 (1643), newest first

Times are New York time; points are gross. Click a row to draw that trade in the chart above.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-03-12short13:156703.0015:596676.25end of day 15:5926.75
2026-03-12long13:056713.0013:156703.00opposite cross−10.00
2026-03-12short13:006704.2513:056713.00opposite cross−8.75
2026-03-12long12:206712.7513:006704.25opposite cross−8.50
2026-03-12short12:106694.0012:206712.75opposite cross−18.75
2026-03-12long12:056716.0012:106694.00opposite cross−22.00
2026-03-11long15:356774.5015:596779.75end of day 15:595.25
2026-03-11short13:456762.0015:356774.50opposite cross−12.50
2026-03-11long13:006779.0013:456762.00opposite cross−17.00
2026-03-11short11:156774.7513:006779.00opposite cross−4.25
2026-03-11long10:506793.7511:156774.75opposite cross−19.00
2026-03-11short10:356771.7510:506793.75opposite cross−22.00
2026-03-10short14:156804.0015:596788.00end of day 15:5916.00
2026-03-10long10:356807.2514:156804.00opposite cross−3.25
2026-03-10short09:556780.5010:356807.25opposite cross−26.75
2026-03-09long14:256719.0015:596801.75end of day 15:5982.75
2026-03-09short13:356705.7514:256719.00opposite cross−13.25
2026-03-09long10:456686.7513:356705.75opposite cross19.00
2026-03-09short09:456661.2510:456686.75opposite cross−25.50
2026-03-06short15:206757.2515:596742.50end of day 15:5914.75
2026-03-06long14:106764.2515:206757.25opposite cross−7.00
2026-03-06short14:056757.5014:106764.25opposite cross−6.75
2026-03-06long13:156777.5014:056757.50opposite cross−20.00
2026-03-06short12:356759.7513:156777.50opposite cross−17.75
2026-03-06long10:356767.5012:356759.75opposite cross−7.75
2026-03-05long15:106803.7515:596835.00end of day 15:5931.25
2026-03-05short10:256831.7515:106803.75opposite cross28.00
2026-03-05long10:006872.5010:256831.75opposite cross−40.75
2026-03-04short15:206882.0015:596873.00end of day 15:599.00
2026-03-04long10:156855.0015:206882.00opposite cross27.00
2026-03-04short09:456824.2510:156855.00opposite cross−30.75
2026-03-03long11:156773.0015:596825.75end of day 15:5952.75
2026-03-02short15:206884.7515:596887.25end of day 15:59−2.50
2026-03-02long14:156893.5015:206884.75opposite cross−8.75
2026-03-02short14:006876.7514:156893.50opposite cross−16.75
2026-03-02long09:356836.2514:006876.75opposite cross40.50
2026-02-27long15:156877.5015:596888.25end of day 15:5910.75
2026-02-27short12:256865.5015:156877.50opposite cross−12.00
2026-02-27long10:256872.0012:256865.50opposite cross−6.50
2026-02-26long13:456903.0015:596921.50end of day 15:5918.50
2026-02-26short09:356950.7513:456903.00opposite cross47.75
2026-02-24short14:256897.0015:596903.25end of day 15:59−6.25
2026-02-24long09:506877.7514:256897.00opposite cross19.25
2026-02-23short14:056847.5015:596854.00end of day 15:59−6.50
2026-02-23long13:156860.5014:056847.50opposite cross−13.00
2026-02-23short10:056882.2513:156860.50opposite cross21.75
2026-02-20long13:106903.5015:596924.75end of day 15:5921.25
2026-02-20short12:206880.7513:106903.50opposite cross−22.75
2026-02-20long09:456878.2512:206880.75opposite cross2.50
2026-02-19long15:406864.5015:596878.25end of day 15:5913.75

← NewerPage 9 of 33Older →

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?