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

NQ daily: the equity line

EMA 20 pullback in a trend, NQ daily, 2024-10-08 to 2026-10-07. Cumulative points after each trade; low 0.00, high 5,961.25, last 3,772.75.

Long and short

SideTradesNet pts
Long27−264.50
Short114,037.25

By month

MonthTradesNet pts
2024-101784.00
2024-111760.00
2024-121−266.75
2025-013−332.25
2025-021639.50
2025-032925.25
2025-0421,130.00
2025-062590.50
2025-0811,065.00
2025-103666.00
2025-113−406.25
2025-122−744.00
2026-012−617.75
2026-024−132.75
2026-0341,418.25
2026-061−1,191.25
2026-082−420.00
2026-093−94.75
Every trade, NQ daily38 trades

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

All trades (38), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-09-21long2026-09-20 18:0029938.002026-09-21 10:2830518.50target580.50
2026-09-04long2026-09-03 18:0029505.002026-09-10 08:5229074.75stop−430.25
2026-09-01long2026-08-31 18:0029518.252026-09-01 04:3729273.25stop−245.00
2026-08-28long2026-08-27 18:0029635.502026-08-30 19:2229401.50stop−234.00
2026-08-20long2026-08-19 18:0029561.502026-08-20 07:4829375.50stop−186.00
2026-06-12long2026-06-11 18:0029456.752026-07-17 04:3828573.50stop−1,191.25
2026-03-19short2026-03-18 18:0024622.002026-03-27 10:4623444.50target1,177.50
2026-03-18short2026-03-17 18:0025019.752026-03-17 22:1725117.25stop−97.50
2026-03-11short2026-03-10 18:0025010.252026-03-12 10:3324595.25target415.00
2026-03-10short2026-03-09 18:0024981.502026-03-10 03:2725058.25stop−76.75
2026-02-27short2026-02-26 18:0025024.252026-03-08 18:0924235.75target788.50
2026-02-13short2026-02-12 18:0024842.252026-02-25 16:2625420.00stop−577.75
2026-02-12short2026-02-11 18:0025289.002026-02-12 11:1224936.00target353.00
2026-02-03long2026-02-02 18:0025876.502026-02-04 10:0025180.00stop−696.50
2026-01-27long2026-01-26 18:0025861.252026-02-01 21:5325365.00stop−496.25
2026-01-23long2026-01-22 18:0025605.002026-01-25 18:0025483.50stop−121.50
2025-12-22long2025-12-21 18:0025635.252026-01-20 03:3325209.50stop−425.75
2025-12-12long2025-12-11 18:0025701.002025-12-12 10:2425382.75stop−318.25
2025-11-27long2025-11-26 18:0025313.002025-12-05 10:0325817.00target504.00
2025-11-11long2025-11-10 18:0025722.252025-11-13 10:4525268.75stop−453.50
2025-11-06long2025-11-05 18:0025738.502025-11-06 11:2525281.75stop−456.75
2025-10-20long2025-10-19 18:0025065.752025-10-29 16:0226377.75target1,312.00
2025-10-16long2025-10-15 18:0024937.002025-10-16 14:1624663.00stop−274.00
2025-10-14long2025-10-13 18:0024913.752025-10-14 06:3424541.75stop−372.00
2025-08-05long2025-08-04 18:0023354.002025-09-18 00:3224653.25target1,065.00
2025-06-24long2025-06-23 18:0022079.002025-07-09 10:0023104.00target1,025.00
2025-06-17long2025-06-16 18:0022176.002025-06-19 09:0521741.50stop−434.50
2025-04-11short2025-04-10 18:0018464.752025-04-24 16:0119383.75stop−919.00
2025-04-03short2025-04-02 18:0219020.002025-04-06 18:0016971.00target2,049.00
2025-03-27short2025-03-26 18:0020046.002025-03-31 09:3319064.00target982.00
2025-03-25short2025-03-24 18:0020353.002025-03-25 07:5120409.75stop−56.75
2025-02-05long2025-02-04 18:0021562.002025-02-14 14:1022201.50target639.50
2025-01-30long2025-01-29 18:0021547.752025-01-31 10:0521909.75target362.00
2025-01-20long2025-01-19 18:0021600.002025-01-27 03:2221209.00stop−391.00
2025-01-07long2025-01-06 18:0021781.252025-01-07 10:3821478.00stop−303.25
2024-12-24long2024-12-23 18:0021743.252024-12-30 07:4921476.50stop−266.75
2024-11-20long2024-11-19 18:0020762.252024-12-04 15:1521522.25target760.00
2024-10-09long2024-10-08 18:0020294.252024-11-07 09:4021078.25target784.00

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?