Strategy library · Moving averages

20 EMA pullback in a trend backtest on NQ and ES futures

EMA 20 pullback in a trend

Also called: EMA pullback strategy, pullback to the 20 EMA, trend pullback strategy, buy when in an uptrend a bar's low touches the 20 EMA and it closes above the 20 EMA, short when in a downtrend a bar's high touches the 20 EMA and it closes below the 20 EMA

What happens if you buy NQ every time in an uptrend a bar's low touches the 20 EMA and it closes above the 20 EMA?

What it is

An uptrend is defined as a close above the EMA 50 with the EMA 20 above the EMA 50, and a pullback is a bar whose low touches the EMA 20. This strategy goes long when that bar closes above the EMA 20, with the stop 1 tick under the bar's low and a target of 2R.

What it did

On NQ futures from 2024-10-08 to 2026-10-07, the 20 EMA pullback in a trend strategy took 1,015 trades on the 15-minute chart, won 37.6% of them and finished 2,069.75 points ($41,395 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 526 long trades on the 15-minute chart won 38.0% and made 1,944.50 points ($38,890 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the 20 EMA pullback in a trend strategy took 1,089 trades on the 15-minute chart, won 37.7% of them and finished 355.00 points ($17,750 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 20 EMA pullback in a trend 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: Trend up = close above EMA 50 and EMA 20 above EMA 50. Long when a bar's low touches EMA 20 and it closes above EMA 20. Exit: Stop 1 tick under that bar's low, target 2R.

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 minute264834.3%0.621.0281,638.25$32,7652,318.00268834.4%−0.070.986−177.50−$8,8751,027.25
5 minute · longs only140334.4%——1,736.50$34,7301,882.75140933.5%——−54.50−$2,725434.50
5 minute · shorts only124534.1%——−98.25−$1,9653,003.25127935.4%——−123.00−$6,150871.75
15 minute101537.6%2.041.0592,069.75$41,3953,644.00108937.7%0.331.047355.00$17,750668.00
15 minute · longs only52638.0%——1,944.50$38,8901,459.7555938.8%——401.75$20,088263.25
15 minute · shorts only48937.2%——125.25$2,5053,181.7553036.4%——−46.75−$2,337695.00
1 hour40144.9%6.401.1422,567.75$51,3551,816.5044142.9%0.971.104429.00$21,450419.75
1 hour · longs only24245.9%——145.50$2,9101,234.7526343.7%——179.25$8,963248.00
1 hour · shorts only15943.4%——2,422.25$48,4451,393.0017841.6%——249.75$12,488361.75
Daily3839.5%99.281.4183,772.75$75,4552,769.003145.2%33.601.7251,041.75$52,088471.75
Daily · longs only2733.3%——−264.50−$5,2904,751.002540.0%——502.50$25,125643.25
Daily · shorts only1154.6%——4,037.25$80,7451,143.75666.7%——539.25$26,963229.75

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

ES daily: the equity line

EMA 20 pullback in a trend, ES daily, 2024-08-28 to 2026-08-27. Cumulative points after each trade; low 0.00, high 1,237.50, last 1,041.75.

Long and short

SideTradesNet pts
Long25502.50
Short6539.25

By month

MonthTradesNet pts
2024-091292.50
2024-101−43.25
2024-113304.25
2024-121−69.50
2025-012−159.25
2025-021−133.75
2025-031199.00
2025-042216.25
2025-051127.50
2025-063188.25
2025-081238.00
2025-09177.50
2025-102−214.00
2025-111−106.75
2026-031150.00
2026-04121.50
2026-061−72.75
2026-074−249.75
2026-083276.00
Every trade, ES daily31 trades

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

All trades (31), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-08-26long2026-08-25 18:007691.502026-08-27 13:087754.50target63.00
2026-08-24long2026-08-23 18:007693.502026-08-24 09:447661.00stop−32.50
2026-08-03long2026-08-02 18:007550.002026-08-05 01:147795.50target245.50
2026-07-22long2026-07-21 18:007545.002026-07-23 08:377472.75stop−72.25
2026-07-10long2026-07-09 18:007587.252026-07-17 00:217516.00stop−71.25
2026-07-03long2026-07-02 18:007523.752026-07-08 04:407479.25stop−44.50
2026-07-01long2026-06-30 18:007543.252026-07-02 13:487481.50stop−61.75
2026-06-19long2026-06-18 18:007576.752026-06-22 23:347504.00stop−72.75
2026-04-07short2026-04-06 18:006650.502026-04-06 21:376629.00target21.50
2026-03-06short2026-03-05 18:006826.002026-03-08 18:006676.00target150.00
2025-11-26long2025-11-25 18:006781.002026-03-03 10:186732.75stop−106.75
2025-10-20long2025-10-19 18:006721.002025-11-20 15:406571.00stop−150.00
2025-10-16long2025-10-15 18:006715.252025-10-16 14:126651.25stop−64.00
2025-09-26long2025-09-25 18:006662.752025-09-30 15:526740.25target77.50
2025-08-05long2025-08-04 18:006370.002025-09-15 08:236608.00target238.00
2025-06-24long2025-06-23 18:006078.002025-07-03 10:026316.50target238.50
2025-06-17long2025-06-16 18:006093.002025-06-19 03:565999.25stop−93.75
2025-06-16long2025-06-15 18:005949.002025-06-15 22:155992.50target43.50
2025-05-26long2025-05-25 18:005820.002025-05-28 09:395947.50target127.50
2025-04-11short2025-04-10 18:005299.252025-04-24 16:015529.00stop−229.75
2025-04-03short2025-04-02 18:005550.502025-04-04 15:575104.50target446.00
2025-03-27short2025-03-26 18:005737.252025-03-31 09:455538.25target199.00
2025-02-04long2025-02-03 18:006069.002025-02-25 10:295935.25stop−133.75
2025-01-28long2025-01-27 18:006059.502025-02-02 18:005947.75stop−111.75
2025-01-17short2025-01-16 18:005970.252025-01-17 08:336017.75stop−47.50
2024-12-26long2024-12-25 18:006099.252024-12-27 10:016029.75stop−69.50
2024-11-20long2024-11-19 18:005937.752024-12-05 10:036103.75target166.00
2024-11-19long2024-11-18 18:005919.002024-11-19 04:295886.25stop−32.75
2024-11-06long2024-11-05 18:005820.252024-11-07 10:315991.25target171.00
2024-10-24long2024-10-23 18:005844.002024-10-31 09:315800.75stop−43.25
2024-09-12long2024-09-11 18:005558.002024-10-14 14:425911.00target292.50

Page 1 of 1

Questions and answers

What happens if you buy NQ every time in an uptrend a bar's low touches the 20 EMA and it closes above the 20 EMA?

From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the 20 EMA pullback in a trend strategy took 526 long trades, won 38.0% of them and made 1,944.50 points ($38,890 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made 1,736.50 points on 1,403 trades on the 5-minute chart, 145.50 points on 242 trades on the 1-hour chart and -264.50 points on 27 trades on the daily chart, before commission and slippage.

What happens if you short ES every time in a downtrend a bar's high touches the 20 EMA and it closes below the 20 EMA?

From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the 20 EMA pullback in a trend strategy took 530 short trades, won 36.4% of them and made -46.75 points (-$2,337 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made -123.00 points on 1,279 trades on the 5-minute chart, 249.75 points on 178 trades on the 1-hour chart and 539.25 points on 6 trades on the daily chart, before commission and slippage.

Does the 20 EMA pullback in a trend strategy work on Nasdaq futures?

On NQ futures from 2024-10-08 to 2026-10-07, the 20 EMA pullback in a trend strategy on the 15-minute chart took 1,015 trades, won 37.6% of them and finished 2,069.75 points ($41,395 on one NQ contract), before commission and slippage.

What is the win rate of EMA 20 pullback in a trend on ES futures?

The 20 EMA pullback in a trend strategy won 37.7% of its 1,089 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 34.4% of 2,688 trades on the 5-minute chart, 42.9% of 441 trades on the 1-hour chart and 45.2% of 31 trades on the daily chart, before commission and slippage.

Is the 20 EMA pullback in a trend 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 20 EMA pullback in a trend strategy made 1,638.25 points on 2,648 trades on the 5-minute chart, 2,069.75 points on 1,015 trades on the 15-minute chart, 2,567.75 points on 401 trades on the 1-hour chart and 3,772.75 points on 38 trades on the daily chart, before commission and slippage.

Is it better to only buy or only sell 20 EMA pullback in a trend signals on NQ?

On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made 1,944.50 points on 526 trades (38.0% won) and the short trades made 125.25 points on 489 trades (37.2% won), before commission and slippage.

How many trades does the 20 EMA pullback in a trend strategy take on NQ in two years?

The 20 EMA pullback in a trend strategy took 1,015 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 2,648 on the 5-minute chart, 401 on the 1-hour chart and 38 on the daily chart, before commission and slippage.

What is the max drawdown of the 20 EMA pullback in a trend strategy on NQ?

The 20 EMA pullback in a trend strategy had a max drawdown of 3,644.00 points ($72,880 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 2,318.00 points on the 5-minute chart, 1,816.50 points on the 1-hour chart and 2,769.00 points on the daily chart, before commission and slippage.

How does the 20 EMA pullback in a trend strategy do on ES compared with NQ?

On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the 20 EMA pullback in a trend strategy took 1,089 trades, won 37.7% of them and made 355.00 points ($17,750 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the 20 EMA pullback in a trend strategy took 1,015 trades, won 37.6% of them and made 2,069.75 points ($41,395 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?