Strategy library · Moving averages
Triple EMA stack (4/9/18) backtest on NQ and ES futures
Triple EMA stack 4 / 9 / 18
Also called: 4 9 18 EMA strategy, buy when the 4 EMA moves above the 9 EMA, which is above the 18 EMA, for the first time, short when the 4 EMA moves below the 9 EMA, which is below the 18 EMA, for the first time
What happens if you buy NQ every time the 4 EMA moves above the 9 EMA, which is above the 18 EMA, for the first time?
What it is
Three exponential moving averages (EMAs) of 4, 9 and 18 periods are stacked in order when they run in one direction. This strategy goes long on the first bar with EMA 4 above EMA 9 above EMA 18, short on the first bar with the reverse order, and exits when the stack breaks.
What it did
On NQ futures from 2024-10-08 to 2026-10-07, the triple EMA stack (4/9/18) strategy took 909 trades on the 15-minute chart, won 38.9% of them and finished -457.00 points (-$9,140 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 456 long trades on the 15-minute chart won 41.7% and made 1,482.25 points ($29,645 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the triple EMA stack (4/9/18) strategy took 958 trades on the 15-minute chart, won 38.6% of them and finished -357.75 points (-$17,887 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 triple EMA stack (4/9/18) 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 on the first bar with EMA 4 > 9 > 18; short on the first bar with 4 < 9 < 18. Exit: When the stack breaks.
| Timeframe | NQ · 2024-10-08 to 2026-10-07 | ES · 2024-08-28 to 2026-08-27 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Trades | Win % | Avg pts | Profit factor | Net pts | Net $ (1 NQ) | Max DD pts | Trades | Win % | Avg pts | Profit factor | Net pts | Net $ (1 ES) | Max DD pts | |
| 5 minute | 2915 | 34.4% | 0.23 | 1.010 | 678.00 | $13,560 | 3,709.00 | 2832 | 35.0% | 0.28 | 1.058 | 790.50 | $39,525 | 620.25 |
| 5 minute · longs only | 1512 | 37.2% | — | — | 1,931.50 | $38,630 | 2,220.25 | 1450 | 36.3% | — | — | 608.50 | $30,425 | 321.75 |
| 5 minute · shorts only | 1403 | 31.3% | — | — | −1,253.50 | −$25,070 | 3,275.75 | 1382 | 33.6% | — | — | 182.00 | $9,100 | 459.25 |
| 15 minute | 909 | 38.9% | −0.50 | 0.987 | −457.00 | −$9,140 | 4,603.25 | 958 | 38.6% | −0.37 | 0.955 | −357.75 | −$17,887 | 790.50 |
| 15 minute · longs only | 456 | 41.7% | — | — | 1,482.25 | $29,645 | 1,553.25 | 477 | 38.8% | — | — | −226.50 | −$11,325 | 562.25 |
| 15 minute · shorts only | 453 | 36.2% | — | — | −1,939.25 | −$38,785 | 3,786.00 | 481 | 38.5% | — | — | −131.25 | −$6,562 | 718.00 |
| 1 hour | 320 | 45.0% | 3.72 | 1.077 | 1,190.75 | $23,815 | 3,370.50 | 342 | 48.3% | −0.10 | 0.991 | −33.25 | −$1,662 | 536.25 |
| 1 hour · longs only | 163 | 45.4% | — | — | 567.00 | $11,340 | 2,417.00 | 161 | 47.8% | — | — | −112.00 | −$5,600 | 314.50 |
| 1 hour · shorts only | 157 | 44.6% | — | — | 623.75 | $12,475 | 1,699.75 | 181 | 48.6% | — | — | 78.75 | $3,938 | 353.25 |
| Daily | 41 | 24.4% | −121.55 | 0.665 | −4,983.50 | −$99,670 | 7,340.75 | 40 | 25.0% | −23.44 | 0.692 | −937.75 | −$46,887 | 1,198.25 |
| Daily · longs only | 22 | 31.8% | — | — | 1,750.25 | $35,005 | 3,047.25 | 23 | 30.4% | — | — | 469.25 | $23,463 | 357.50 |
| Daily · shorts only | 19 | 15.8% | — | — | −6,733.75 | −$134,675 | 7,112.75 | 17 | 17.7% | — | — | −1,407.00 | −$70,350 | 1,407.00 |
Free to use with credit to CE Market Solutions (CC BY 4.0).
NQ daily: the equity line
Long and short
| Side | Trades | Net pts |
|---|---|---|
| Long | 22 | 1,750.25 |
| Short | 19 | −6,733.75 |
By month
| Month | Trades | Net pts |
|---|---|---|
| 2024-11 | 3 | −1,022.25 |
| 2024-12 | 1 | −659.25 |
| 2025-01 | 2 | −581.25 |
| 2025-02 | 2 | 1,021.75 |
| 2025-03 | 1 | 417.25 |
| 2025-04 | 2 | 1,016.25 |
| 2025-06 | 1 | 771.00 |
| 2025-08 | 2 | −476.75 |
| 2025-09 | 2 | 364.50 |
| 2025-10 | 1 | 249.00 |
| 2025-11 | 1 | −170.75 |
| 2025-12 | 3 | −1,061.25 |
| 2026-01 | 4 | −1,700.50 |
| 2026-02 | 1 | −326.50 |
| 2026-03 | 2 | 284.75 |
| 2026-04 | 1 | 3,607.50 |
| 2026-06 | 3 | −3,743.25 |
| 2026-07 | 3 | −1,657.00 |
| 2026-08 | 1 | −187.25 |
| 2026-09 | 5 | −1,129.50 |
Every trade, NQ daily41 trades
Daily results show the table and the equity line; there is no chart viewer for them yet.
All trades (41), newest first
Times are New York time; points are gross.
| Session date | Side | Entry (ET) | Entry price | Exit (ET) | Exit price | Exit reason | Points |
|---|---|---|---|---|---|---|---|
| 2026-09-22 | long | 2026-09-21 18:00 | 30780.00 | 2026-10-07 16:59 | 31403.75 | window end | 623.75 |
| 2026-09-11 | short | 2026-09-10 18:00 | 29141.00 | 2026-09-20 18:00 | 29938.00 | stack broken | −502.25 |
| 2026-09-08 | long | 2026-09-07 18:00 | 29611.50 | 2026-09-10 18:00 | 29141.00 | stack broken and reversed | −470.50 |
| 2026-09-02 | short | 2026-09-01 18:00 | 29136.50 | 2026-09-06 18:00 | 29535.25 | stack broken | −398.75 |
| 2026-09-01 | long | 2026-08-31 18:00 | 29518.25 | 2026-09-01 18:00 | 29136.50 | stack broken and reversed | −381.75 |
| 2026-08-07 | long | 2026-08-06 18:00 | 29514.25 | 2026-08-20 18:00 | 29327.00 | stack broken | −187.25 |
| 2026-07-14 | short | 2026-07-13 18:00 | 29446.00 | 2026-08-04 18:00 | 29777.25 | stack broken | −331.25 |
| 2026-07-03 | short | 2026-07-02 18:00 | 29566.00 | 2026-07-12 18:00 | 29952.00 | stack broken | −386.00 |
| 2026-07-01 | long | 2026-06-30 18:00 | 30505.75 | 2026-07-02 18:00 | 29566.00 | stack broken and reversed | −939.75 |
| 2026-06-29 | short | 2026-06-28 18:00 | 29282.50 | 2026-06-30 18:00 | 30505.75 | stack broken and reversed | −1,223.25 |
| 2026-06-16 | long | 2026-06-15 18:00 | 30838.00 | 2026-06-23 18:00 | 29770.00 | stack broken | −1,068.00 |
| 2026-06-11 | short | 2026-06-10 18:00 | 28455.00 | 2026-06-14 18:00 | 29907.00 | stack broken | −1,452.00 |
| 2026-04-10 | long | 2026-04-09 18:00 | 25237.00 | 2026-06-07 18:00 | 28844.50 | stack broken | 3,607.50 |
| 2026-03-09 | short | 2026-03-08 18:00 | 24435.25 | 2026-04-06 18:00 | 24348.75 | stack broken | 301.75 |
| 2026-03-03 | short | 2026-03-02 18:00 | 25002.75 | 2026-03-05 18:00 | 25019.75 | stack broken | −17.00 |
| 2026-02-05 | short | 2026-02-04 18:00 | 25061.75 | 2026-02-25 18:00 | 25388.25 | stack broken | −326.50 |
| 2026-01-28 | long | 2026-01-27 18:00 | 26111.25 | 2026-02-03 18:00 | 25387.50 | stack broken | −723.75 |
| 2026-01-20 | short | 2026-01-19 18:00 | 25394.75 | 2026-01-26 18:00 | 25861.25 | stack broken | −466.50 |
| 2026-01-07 | long | 2026-01-06 18:00 | 25831.25 | 2026-01-15 18:00 | 25720.50 | stack broken | −110.75 |
| 2026-01-05 | short | 2026-01-04 18:00 | 25431.75 | 2026-01-06 18:00 | 25831.25 | stack broken and reversed | −399.50 |
| 2025-12-26 | long | 2025-12-25 18:00 | 25868.00 | 2026-01-01 18:00 | 25478.50 | stack broken | −389.50 |
| 2025-12-17 | short | 2025-12-16 18:00 | 25332.00 | 2025-12-23 18:00 | 25815.75 | stack broken | −483.75 |
| 2025-12-02 | long | 2025-12-01 18:00 | 25411.50 | 2025-12-14 18:00 | 25223.50 | stack broken | −188.00 |
| 2025-11-17 | short | 2025-11-16 18:00 | 25142.25 | 2025-11-26 18:00 | 25313.00 | stack broken | −170.75 |
| 2025-10-20 | long | 2025-10-19 18:00 | 25065.75 | 2025-11-06 18:00 | 25314.75 | stack broken | 249.00 |
| 2025-09-05 | long | 2025-09-04 18:00 | 23700.00 | 2025-10-12 18:00 | 24542.00 | stack broken | 607.75 |
| 2025-09-04 | short | 2025-09-03 18:00 | 23456.75 | 2025-09-04 18:00 | 23700.00 | stack broken and reversed | −243.25 |
| 2025-08-29 | long | 2025-08-28 18:00 | 23760.50 | 2025-08-31 18:00 | 23479.00 | stack broken | −281.50 |
| 2025-08-08 | long | 2025-08-07 18:00 | 23518.25 | 2025-08-20 18:00 | 23323.00 | stack broken | −195.25 |
| 2025-06-24 | long | 2025-06-23 18:00 | 22079.00 | 2025-08-03 18:00 | 22850.00 | stack broken | 771.00 |
| 2025-04-29 | long | 2025-04-28 18:00 | 19478.25 | 2025-06-19 18:00 | 21748.25 | stack broken | 2,030.00 |
| 2025-04-17 | short | 2025-04-16 18:00 | 18391.25 | 2025-04-24 18:00 | 19405.00 | stack broken | −1,013.75 |
| 2025-03-31 | short | 2025-03-30 18:00 | 19319.75 | 2025-04-14 18:00 | 18902.50 | stack broken | 417.25 |
| 2025-02-26 | short | 2025-02-25 18:00 | 21230.50 | 2025-03-24 18:00 | 20353.00 | stack broken | 1,085.50 |
| 2025-02-06 | long | 2025-02-05 18:00 | 21764.50 | 2025-02-23 18:00 | 21700.75 | stack broken | −63.75 |
| 2025-01-22 | long | 2025-01-21 18:00 | 21809.25 | 2025-01-28 18:00 | 21559.00 | stack broken | −250.25 |
| 2025-01-02 | short | 2025-01-01 18:00 | 21269.00 | 2025-01-19 18:00 | 21600.00 | stack broken | −331.00 |
| 2024-12-26 | long | 2024-12-25 18:00 | 22049.50 | 2024-12-30 18:00 | 21390.25 | stack broken | −659.25 |
| 2024-11-25 | long | 2024-11-24 18:00 | 20935.00 | 2024-12-19 18:00 | 21429.25 | stack broken | 190.00 |
| 2024-11-07 | long | 2024-11-06 18:00 | 20923.50 | 2024-11-17 18:00 | 20504.00 | stack broken | −419.50 |
| 2024-11-05 | short | 2024-11-04 18:00 | 20130.75 | 2024-11-06 18:00 | 20923.50 | stack broken and reversed | −792.75 |
Page 1 of 1
Questions and answers
What happens if you buy NQ every time the 4 EMA moves above the 9 EMA, which is above the 18 EMA, for the first time?
From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the triple EMA stack (4/9/18) strategy took 456 long trades, won 41.7% of them and made 1,482.25 points ($29,645 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made 1,931.50 points on 1,512 trades on the 5-minute chart, 567.00 points on 163 trades on the 1-hour chart and 1,750.25 points on 22 trades on the daily chart, before commission and slippage.
What happens if you short ES every time the 4 EMA moves below the 9 EMA, which is below the 18 EMA, for the first time?
From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the triple EMA stack (4/9/18) strategy took 481 short trades, won 38.5% of them and made -131.25 points (-$6,562 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made 182.00 points on 1,382 trades on the 5-minute chart, 78.75 points on 181 trades on the 1-hour chart and -1,407.00 points on 17 trades on the daily chart, before commission and slippage.
Does the triple EMA stack (4/9/18) strategy work on Nasdaq futures?
On NQ futures from 2024-10-08 to 2026-10-07, the triple EMA stack (4/9/18) strategy on the 15-minute chart took 909 trades, won 38.9% of them and finished -457.00 points (-$9,140 on one NQ contract), before commission and slippage.
What is the win rate of Triple EMA stack 4 / 9 / 18 on ES futures?
The triple EMA stack (4/9/18) strategy won 38.6% of its 958 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 35.0% of 2,832 trades on the 5-minute chart, 48.3% of 342 trades on the 1-hour chart and 25.0% of 40 trades on the daily chart, before commission and slippage.
Is the triple EMA stack (4/9/18) 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 triple EMA stack (4/9/18) strategy made 678.00 points on 2,915 trades on the 5-minute chart, -457.00 points on 909 trades on the 15-minute chart, 1,190.75 points on 320 trades on the 1-hour chart and -4,983.50 points on 41 trades on the daily chart, before commission and slippage.
Is it better to only buy or only sell triple EMA stack (4/9/18) signals on NQ?
On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made 1,482.25 points on 456 trades (41.7% won) and the short trades made -1,939.25 points on 453 trades (36.2% won), before commission and slippage.
How many trades does the triple EMA stack (4/9/18) strategy take on NQ in two years?
The triple EMA stack (4/9/18) strategy took 909 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,915 on the 5-minute chart, 320 on the 1-hour chart and 41 on the daily chart, before commission and slippage.
What is the max drawdown of the triple EMA stack (4/9/18) strategy on NQ?
The triple EMA stack (4/9/18) strategy had a max drawdown of 4,603.25 points ($92,065 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 3,709.00 points on the 5-minute chart, 3,370.50 points on the 1-hour chart and 7,340.75 points on the daily chart, before commission and slippage.
How does the triple EMA stack (4/9/18) strategy do on ES compared with NQ?
On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the triple EMA stack (4/9/18) strategy took 958 trades, won 38.6% of them and made -357.75 points (-$17,887 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the triple EMA stack (4/9/18) strategy took 909 trades, won 38.9% of them and made -457.00 points (-$9,140 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?