Strategy library · Mean reversion and bands

Z-score reversion backtest on NQ and ES futures

Z-score (20) at -2

Also called: z-score strategy, z-score -2 strategy, statistical mean reversion, buy when the 20-bar z-score drops below -2, short when the 20-bar z-score rises above +2

What happens if you buy NQ every time the 20-bar z-score drops below -2?

What it is

The 20-bar z-score measures how many standard deviations the close is from its 20-bar average. This strategy goes long when the z-score drops below -2 and short when it rises above +2, and exits when the z-score returns to 0.

What it did

On NQ futures from 2024-10-08 to 2026-10-07, the z-score reversion strategy took 648 trades on the 15-minute chart, won 57.6% of them and finished -952.75 points (-$19,055 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, the 325 long trades on the 15-minute chart won 61.9% and made 239.75 points ($4,795 on one NQ contract), before commission and slippage. On ES futures from 2024-08-28 to 2026-08-27, the z-score reversion strategy took 670 trades on the 15-minute chart, won 56.7% of them and finished -130.75 points (-$6,537 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 z-score reversion 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 20-bar z-score drops below -2; short above +2. Exit: Z-score back to 0.

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 minute153361.1%−2.260.933−3,466.25−$69,3255,320.00151661.4%−0.260.960−389.00−$19,450802.75
5 minute · longs only78063.0%——−2,359.25−$47,1854,008.2578463.5%——2.75$138432.25
5 minute · shorts only75359.1%——−1,107.00−$22,1402,384.7573259.0%——−391.75−$19,587577.25
15 minute64857.6%−1.470.973−952.75−$19,0555,085.7567056.7%−0.200.981−130.75−$6,537798.00
15 minute · longs only32561.9%——239.75$4,7953,592.2534159.5%——164.75$8,238473.50
15 minute · shorts only32353.3%——−1,192.50−$23,8503,025.2532953.8%——−295.50−$14,775648.25
1 hour37948.3%−5.270.911−1,998.00−$39,9603,198.5042052.4%0.881.080370.75$18,538569.00
1 hour · longs only17755.4%——−1,190.50−$23,8102,704.7519256.8%——−74.00−$3,700516.75
1 hour · shorts only20242.1%——−807.50−$16,1501,423.2522848.7%——444.75$22,238237.00
Daily2171.4%107.181.4122,250.75$45,0152,858.751866.7%56.072.1811,009.25$50,463441.50
Daily · longs only988.9%——2,961.25$59,2251,085.501070.0%——1,082.00$54,100258.75
Daily · shorts only1258.3%——−710.50−$14,2103,482.50862.5%——−72.75−$3,637375.00

ES Daily: small sample (18 trades).

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

NQ daily: the equity line

Z-score (20) at -2, NQ daily, 2024-10-08 to 2026-10-07. Cumulative points after each trade; low 0.00, high 4,243.75, last 2,250.75.

Long and short

SideTradesNet pts
Long92,961.25
Short12−710.50

By month

MonthTradesNet pts
2024-101344.50
2024-1121,572.75
2024-121317.75
2025-022−550.50
2025-041166.50
2025-051−258.25
2025-061−438.00
2025-081303.00
2025-091−192.50
2025-101687.75
2025-111762.00
2026-0121,188.50
2026-021326.50
2026-03113.75
2026-041−2,858.75
2026-0711,029.50
2026-092−163.75
Every trade, NQ daily21 trades

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

All trades (21), newest first

Times are New York time; points are gross.

Session dateSideEntry (ET)Entry priceExit (ET)Exit priceExit reasonPoints
2026-09-22short2026-09-21 18:0030780.002026-10-07 16:5931403.75window end−623.75
2026-09-16long2026-09-15 18:0029263.752026-09-17 18:0029723.75z back to 0460.00
2026-07-20long2026-07-19 18:0028747.752026-08-04 18:0029777.25z back to 01,029.50
2026-04-15short2026-04-14 18:0025985.752026-06-07 18:0028844.50z back to 0−2,858.75
2026-03-16long2026-03-15 18:0024285.002026-04-07 18:0024514.00z back to 013.75
2026-02-05long2026-02-04 18:0025061.752026-02-25 18:0025388.25z back to 0326.50
2026-01-29short2026-01-28 18:0026282.502026-02-01 18:0025530.00z back to 0752.50
2026-01-21long2026-01-20 18:0025149.502026-01-25 18:0025585.50z back to 0436.00
2025-11-19long2025-11-18 18:0024551.002025-11-26 18:0025313.00z back to 0762.00
2025-10-28short2025-10-27 18:0026002.502025-11-06 18:0025314.75z back to 0687.75
2025-09-15short2025-09-14 18:0024115.252025-10-12 18:0024542.00z back to 0−192.50
2025-08-11short2025-08-10 18:0023764.002025-08-19 18:0023461.00z back to 0303.00
2025-06-25short2025-06-24 18:0022412.002025-08-03 18:0022850.00z back to 0−438.00
2025-05-14short2025-05-13 18:0021250.002025-06-19 18:0021748.25z back to 0−258.25
2025-04-04long2025-04-03 18:0018660.002025-04-23 18:0018826.50z back to 0166.50
2025-02-26long2025-02-25 18:0021230.502025-03-24 18:0020353.00z back to 0−1,085.50
2025-02-17short2025-02-16 18:0022235.752025-02-23 18:0021700.75z back to 0535.00
2024-12-05short2024-12-04 18:0021513.252024-12-18 18:0021499.75z back to 0317.75
2024-11-08short2024-11-07 18:0021224.252024-11-17 18:0020504.00z back to 0720.25
2024-11-01long2024-10-31 18:0020071.002024-11-06 18:0020923.50z back to 0852.50
2024-10-15short2024-10-14 18:0020638.752024-10-23 18:0020294.25z back to 0344.50

Page 1 of 1

Questions and answers

What happens if you buy NQ every time the 20-bar z-score drops below -2?

From 2024-10-08 to 2026-10-07 on the NQ 15-minute chart, the z-score reversion strategy took 325 long trades, won 61.9% of them and made 239.75 points ($4,795 on one NQ contract), before commission and slippage. From 2024-10-08 to 2026-10-07 on NQ, its long trades also made -2,359.25 points on 780 trades on the 5-minute chart, -1,190.50 points on 177 trades on the 1-hour chart and 2,961.25 points on 9 trades on the daily chart, before commission and slippage.

What happens if you short ES every time the 20-bar z-score rises above +2?

From 2024-08-28 to 2026-08-27 on the ES 15-minute chart, the z-score reversion strategy took 329 short trades, won 53.8% of them and made -295.50 points (-$14,775 on one ES contract), before commission and slippage. From 2024-08-28 to 2026-08-27 on ES, its short trades also made -391.75 points on 732 trades on the 5-minute chart, 444.75 points on 228 trades on the 1-hour chart and -72.75 points on 8 trades on the daily chart, before commission and slippage.

Does the z-score reversion strategy work on Nasdaq futures?

On NQ futures from 2024-10-08 to 2026-10-07, the z-score reversion strategy on the 15-minute chart took 648 trades, won 57.6% of them and finished -952.75 points (-$19,055 on one NQ contract), before commission and slippage.

What is the win rate of Z-score (20) at -2 on ES futures?

The z-score reversion strategy won 56.7% of its 670 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 61.4% of 1,516 trades on the 5-minute chart, 52.4% of 420 trades on the 1-hour chart and 66.7% of 18 trades on the daily chart, before commission and slippage.

Is the z-score reversion 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 z-score reversion strategy made -3,466.25 points on 1,533 trades on the 5-minute chart, -952.75 points on 648 trades on the 15-minute chart, -1,998.00 points on 379 trades on the 1-hour chart and 2,250.75 points on 21 trades on the daily chart, before commission and slippage.

Is it better to only buy or only sell z-score reversion signals on NQ?

On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the long trades made 239.75 points on 325 trades (61.9% won) and the short trades made -1,192.50 points on 323 trades (53.3% won), before commission and slippage.

How many trades does the z-score reversion strategy take on NQ in two years?

The z-score reversion strategy took 648 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,533 on the 5-minute chart, 379 on the 1-hour chart and 21 on the daily chart, before commission and slippage.

What is the max drawdown of the z-score reversion strategy on NQ?

The z-score reversion strategy had a max drawdown of 5,085.75 points ($101,715 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,320.00 points on the 5-minute chart, 3,198.50 points on the 1-hour chart and 2,858.75 points on the daily chart, before commission and slippage.

How does the z-score reversion strategy do on ES compared with NQ?

On the ES 15-minute chart from 2024-08-28 to 2026-08-27, the z-score reversion strategy took 670 trades, won 56.7% of them and made -130.75 points (-$6,537 on one ES contract), before commission and slippage. On the NQ 15-minute chart from 2024-10-08 to 2026-10-07, the z-score reversion strategy took 648 trades, won 57.6% of them and made -952.75 points (-$19,055 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?