Strategy library · Moving averages

Price crossing the 20 EMA backtest on NQ and ES futures

Price crosses EMA 20

Also called: price cross EMA 20, 20 EMA cross strategy, close above 20 EMA, buy when price closes above the 20 EMA, short when price closes below the 20 EMA

What happens if you buy NQ every time price closes above the 20 EMA?

What it is

The 20-period exponential moving average (EMA) is a moving average that weights recent prices more heavily. This strategy goes long when the close crosses above the EMA 20, short when it crosses below, and reverses on the opposite cross.

What it did

On NQ futures from 2024-10-08 to 2026-10-07, the price crossing the 20 EMA strategy took 1,616 trades on the 15-minute chart, won 30.5% of them and finished 112.75 points ($2,255 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 819 long trades on the 15-minute chart won 32.5% and made 2,074.25 points ($41,485 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the price crossing the 20 EMA strategy took 1,627 trades on the 15-minute chart, won 30.3% of them and finished 243.75 points ($12,188 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 price crossing the 20 EMA 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 the close crosses above EMA 20; short when it crosses below. Exit: Opposite cross (stop and reverse).

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 minute512626.6%−0.470.973−2,425.50−$48,5105,514.25495126.7%0.111.031561.50$28,075690.00
5 minute · longs only256628.6%——456.75$9,1353,207.50246827.6%——355.25$17,763416.75
5 minute · shorts only256024.5%——−2,882.25−$57,6454,325.75248325.9%——206.25$10,313481.00
15 minute161630.5%0.071.002112.75$2,2554,132.00162730.3%0.151.025243.75$12,188702.00
15 minute · longs only81932.5%——2,074.25$41,4851,565.0081332.0%——610.00$30,500303.25
15 minute · shorts only79728.5%——−1,961.50−$39,2304,893.5081428.6%——−366.25−$18,312747.75
1 hour46340.0%2.401.0511,113.00$22,2602,961.7551739.5%0.481.049249.25$12,463435.75
1 hour · longs only22942.4%——143.50$2,8702,667.0023938.1%——67.50$3,375332.00
1 hour · shorts only23437.6%——969.50$19,3901,884.2527840.7%——181.75$9,088374.50
Daily7421.6%−12.250.945−906.75−$18,1355,621.757024.3%−5.790.874−405.00−$20,2501,267.00
Daily · longs only3729.7%——4,077.00$81,5402,534.753534.3%——656.75$32,838450.50
Daily · shorts only3713.5%——−4,983.75−$99,6755,050.003514.3%——−1,061.75−$53,0871,173.50

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

ES 15 minute: the equity line

Price crosses EMA 20, ES 15 minute, 2024-08-28 to 2026-08-27. Cumulative points after each trade; low −116.25, high 585.75, last 243.75.

Long and short

SideTradesNet pts
Long813610.00
Short814−366.25

By month

MonthTradesNet pts
2024-08661.00
2024-0970105.75
2024-1071−23.75
2024-1155−59.00
2024-1261215.25
2025-0171−162.25
2025-025963.25
2025-037186.00
2025-0477135.50
2025-0578−291.50
2025-065963.75
2025-076420.50
2025-0869−117.00
2025-0976−190.25
2025-1065334.75
2025-1158285.25
2025-1279−228.50
2026-0176−172.00
2026-024618.50
2026-037886.50
2026-0473−36.75
2026-056683.25
2026-0669−214.75
2026-0757246.50
2026-0873−66.25
Every trade, ES 15 minute1627 trades

Pick any of the 1627 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 (1627), 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
2025-10-21short14:456778.0015:006779.25opposite cross−1.25
2025-10-21long14:006782.0014:456778.00opposite cross−4.00
2025-10-21short13:306776.0014:006782.00opposite cross−6.00
2025-10-21long13:156780.5013:306776.00opposite cross−4.50
2025-10-21short13:006774.7513:156780.50opposite cross−5.75
2025-10-21long10:456772.5013:006774.75opposite cross2.25
2025-10-21short09:456771.0010:456772.50opposite cross−1.50
2025-10-17long11:306653.7515:596703.75end of day 15:5950.00
2025-10-17short11:156650.7511:306653.75opposite cross−3.00
2025-10-16short11:306721.0015:596668.50end of day 15:5952.50
2025-10-16long11:156742.0011:306721.00opposite cross−21.00
2025-10-16short11:006734.0011:156742.00opposite cross−8.00
2025-10-16long10:456747.7511:006734.00opposite cross−13.75
2025-10-15short15:456711.0015:596715.00end of day 15:59−4.00
2025-10-15long14:456713.5015:456711.00opposite cross−2.50
2025-10-15short11:456719.2514:456713.50opposite cross5.75
2025-10-14short15:456672.2515:596686.00end of day 15:59−13.75
2025-10-14long10:156644.7515:456672.25opposite cross27.50
2025-10-13long15:306692.7515:596694.50end of day 15:591.75
2025-10-13short15:006685.7515:306692.75opposite cross−7.00
2025-10-13long11:156678.7515:006685.75opposite cross7.00
2025-10-13short11:006666.5011:156678.75opposite cross−12.25
2025-10-13long10:456679.2511:006666.50opposite cross−12.75
2025-10-13short10:306673.0010:456679.25opposite cross−6.25
2025-10-13long09:456675.2510:306673.00opposite cross−2.25
2025-10-10short11:006757.5015:596595.00end of day 15:59162.50
2025-10-09long15:306774.5015:596781.25end of day 15:596.75
2025-10-09short09:456797.0015:306774.50opposite cross22.50
2025-10-08long10:006773.5015:596802.00end of day 15:5928.50
2025-10-08short09:456767.5010:006773.50opposite cross−6.00
2025-10-07long15:456764.2515:596762.50end of day 15:59−1.75
2025-10-07short10:306784.0015:456764.25opposite cross19.75
2025-10-06long15:456790.5015:596788.50end of day 15:59−2.00
2025-10-06short15:306789.5015:456790.50opposite cross−1.00
2025-10-06long11:306784.0015:306789.50opposite cross5.50
2025-10-06short09:456775.5011:306784.00opposite cross−8.50
2025-10-03short13:156787.5015:596765.00end of day 15:5922.50
2025-10-03long09:456781.0013:156787.50opposite cross6.50
2025-10-02long13:456762.7515:596766.75end of day 15:594.00
2025-10-02short09:456764.5013:456762.75opposite cross1.75
2025-09-30long14:156713.7515:596737.25end of day 15:5923.50
2025-09-30short13:006705.0014:156713.75opposite cross−8.75
2025-09-30long12:006707.2513:006705.00opposite cross−2.25
2025-09-30short11:306699.2512:006707.25opposite cross−8.00
2025-09-30long11:006709.5011:306699.25opposite cross−10.25
2025-09-30short10:456700.7511:006709.50opposite cross−8.75
2025-09-30long10:306706.0010:456700.75opposite cross−5.25
2025-09-30short10:156704.2510:306706.00opposite cross−1.75
2025-09-29short11:006723.2515:596714.25end of day 15:599.00
2025-09-29long10:456728.7511:006723.25opposite cross−5.50

← NewerPage 15 of 33Older →

Questions and answers

What happens if you buy NQ every time price closes above the 20 EMA?

From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the price crossing the 20 EMA strategy took 819 long trades, won 32.5% of them and made 2,074.25 points ($41,485 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made 456.75 points on 2,566 trades on the 5-minute chart, 143.50 points on 229 trades on the 1-hour chart and 4,077.00 points on 37 trades on the daily chart, before commission and slippage.

What happens if you short ES every time price closes below the 20 EMA?

From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the price crossing the 20 EMA strategy took 814 short trades, won 28.6% of them and made -366.25 points (-$18,312 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made 206.25 points on 2,483 trades on the 5-minute chart, 181.75 points on 278 trades on the 1-hour chart and -1,061.75 points on 35 trades on the daily chart, before commission and slippage.

Does the price crossing the 20 EMA strategy work on Nasdaq futures?

On NQ futures from 2024-10-08 to 2026-10-07, the price crossing the 20 EMA strategy on the 15-minute chart took 1,616 trades, won 30.5% of them and finished 112.75 points ($2,255 on one NQ contract), before commission and slippage.

What is the win rate of Price crosses EMA 20 on ES futures?

The price crossing the 20 EMA strategy won 30.3% of its 1,627 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 26.7% of 4,951 trades on the 5-minute chart, 39.5% of 517 trades on the 1-hour chart and 24.3% of 70 trades on the daily chart, before commission and slippage.

Is the price crossing the 20 EMA 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 price crossing the 20 EMA strategy made -2,425.50 points on 5,126 trades on the 5-minute chart, 112.75 points on 1,616 trades on the 15-minute chart, 1,113.00 points on 463 trades on the 1-hour chart and -906.75 points on 74 trades on the daily chart, before commission and slippage.

Is it better to only buy or only sell price crossing the 20 EMA signals on NQ?

On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made 2,074.25 points on 819 trades (32.5% won) and the short trades made -1,961.50 points on 797 trades (28.5% won), before commission and slippage.

How many trades does the price crossing the 20 EMA strategy take on NQ in two years?

The price crossing the 20 EMA strategy took 1,616 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 5,126 on the 5-minute chart, 463 on the 1-hour chart and 74 on the daily chart, before commission and slippage.

What is the max drawdown of the price crossing the 20 EMA strategy on NQ?

The price crossing the 20 EMA strategy had a max drawdown of 4,132.00 points ($82,640 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,514.25 points on the 5-minute chart, 2,961.75 points on the 1-hour chart and 5,621.75 points on the daily chart, before commission and slippage.

How does the price crossing the 20 EMA strategy do on ES compared with NQ?

On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the price crossing the 20 EMA strategy took 1,627 trades, won 30.3% of them and made 243.75 points ($12,188 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the price crossing the 20 EMA strategy took 1,616 trades, won 30.5% of them and made 112.75 points ($2,255 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?