RealTest strategies / RealTest Low Drawdown Nasdaq Mean Reversion Strategy

RealTest Low Drawdown Nasdaq Mean Reversion Strategy

A RealTest mean-reversion strategy for Nasdaq 100 stocks that sizes each position by current market volatility. It buys oversold pullbacks in the Connors and Alvarez style, then automatically holds less when markets turn turbulent, which is what keeps its drawdowns shallow. Tested on survivorship-free Norgate data with commissions modeled, and trading live since January 2025.

Live traded since Jan 2025Trading costs included Survivorship-bias-free data
$100k$300k$1.0M'02'04'06'08'10'12'14'16'18'20'22'24'26 In-sample Out-of-sample Live $1.6M $565k
Strategy SPY buy & hold
Sharpe ratio?
1.36
+196%vs SPY 0.46
Best year?
+46.2%
1.7×SPY best: 27.0% in 2003
Max drawdown?
-10.2%
80% smallervs SPY -49.9%

Robustness and stress testing

See how results changed when we varied the settings, assumptions or trades.

Does it only work with one exact setting?

Low-Drawdown Nasdaq Mean Reversion RealTest strategy parameter stability heatmap: out-of-sample Sharpe ratio across 25 backtests varying two anonymized parameters, chosen setting marked

See how each test is run →

What happened in every crash

CrisisDatesStrategySPYSame $100k in
Dotcom crash Mar 2000 – Oct 2002 48.7% -41.8%
2008 financial crisis Oct 2007 – Mar 2009 0.6% -49.9%
COVID-19 crash Feb 2020 – Mar 2020 0.0% -28.7%
2022 bear market Jan 2022 – Oct 2022 2.5% -21.3%

Strategy monthly returns

JanFebMarAprMayJunJulAugSepOctNovDecYear
20001.67.08.38.56.70.22.51.61.9-1.10.71.246.2%
20011.30.1-0.00.01.73.12.40.70.00.00.13.313.4%
20020.31.10.70.01.6-1.0-0.40.00.60.00.00.93.8%
20032.00.20.53.92.52.82.52.7-2.17.74.20.831.1%
20040.43.3-0.41.01.31.11.20.31.11.70.41.613.7%
20052.22.52.20.50.01.81.4-3.30.61.0-0.14.213.7%
20063.61.51.01.40.84.40.80.10.11.11.03.220.7%
20071.41.00.40.31.10.9-0.61.62.30.53.60.513.6%
2008-5.11.71.20.12.60.01.20.8-3.3-0.00.00.0-1.2%
20090.1-1.0-0.90.00.9-1.01.32.43.6-1.23.32.09.8%
2010-2.42.71.40.3-0.0-1.82.71.40.40.41.00.76.7%
20110.61.0-0.60.42.3-2.4-0.2-3.6-0.01.23.21.53.2%
20120.00.81.00.30.40.61.0-0.4-0.30.80.10.64.9%
20131.12.7-0.60.60.22.10.42.51.41.02.80.916.3%
2014-2.91.00.30.90.40.6-0.40.0-0.20.30.42.22.4%
20152.6-0.21.12.11.5-0.51.20.90.10.00.81.511.6%
2016-2.00.00.80.70.60.4-0.20.4-0.41.00.80.52.6%
20172.2-0.1-0.5-0.00.90.31.10.60.21.30.40.87.5%
20181.2-2.30.72.01.1-0.6-0.60.21.2-2.90.6-1.9-1.5%
2019-0.00.73.10.5-2.72.31.70.31.30.71.50.810.5%
2020-0.5-0.12.00.01.40.40.62.73.8-1.16.23.920.7%
20211.01.82.92.00.41.41.91.4-2.00.5-1.52.012.3%
20220.32.4-0.11.20.1-0.30.2-0.1-1.81.10.62.56.2%
20230.2-0.42.5-1.21.63.80.9-0.1-1.6-0.10.11.67.3%
20240.61.30.90.3-0.61.21.20.13.01.00.8-4.06.0%
20256.60.1-0.40.20.20.30.6-0.10.61.8-3.60.46.7%
20262.30.8-1.20.2-0.81.112.92.52.1-7.20.312.5%

Strategy overview

Why it stays shallow

Mean reversion buys stocks that have sold off too hard and waits for the bounce. The usual problem is that the same volatility that creates those setups also creates the deep drawdowns, because a plain strategy is fully exposed exactly when the market is at its wildest. This one measures volatility as it changes and scales its exposure to match, holding smaller when conditions are turbulent and larger when they are calm. The mean-reversion edge is the same, and the ride is much smoother.

How it was tested

The backtest runs on Nasdaq 100 stocks including names later removed from the index, so survivorship bias does not inflate the results. Interactive Brokers commissions and a limit-order buffer are included, so the equity curve is after real costs. The rules build on the published Connors and Alvarez pullback approach and stay simple, and the strategy was checked with walk-forward analysis. The drawdown you can see on the equity curve is the whole point of the design.

How it fits your trading

This is the steady, low-stress strategy in the lineup. Because its drawdowns are shallow, it is easier to keep trading through a rough market, which is often where traders abandon better strategies at the worst time. It works well as a stable core that you can size larger with more confidence, and it pairs naturally with a higher-return, higher-swing strategy to lift the overall return without giving up the smooth base.

Specification

StyleMean reversionUniverseNasdaq 100 current & past stocksTimeframeDailyOrder generationAfter the close, before next openSideLongAverage hold4 trading daysTrade frequency9.1 per monthEntry executionLimit order (placed before open, active open to close)Exit executionLimit & market (market on open, or limit active open to close)DataNorgate Data (US Stocks Platinum, EOD) SoftwareRealTest or PythonCommission$0.005 / shareLimit price buffer0.1% past limitSPY benchmarkNo fees applied (favors SPY)

What you get

RealTest by MHP Trading logo
RealTest strategy code (.rts)
Reproduce the backtest above and check every trade. Setup video →
Trading strategy rules plain text document
Plain text rules
Rebuild the strategy in any software you use.
Python programming logo for quantitative trading backtest
Python backtest code (.py)
Open it in Python and run the backtest.

What traders say

❝

Buying a SetupAlpha strategy didn't save me money, it saved me research time. I estimate it replaced 70–90 hours of development, debugging, and validation. Even if I never trade the strategy exactly as delivered, the research process was worth the investment.

Roman Blackwood
Roman Blackwood
Founder of AI in Trading (+13K subscribers)
❝

I've been using a strategy from SetupAlpha and I'm really impressed with its elegance and stability. The unique approach gives me a fresh perspective and ideas I can apply to other strategies I'm developing. I'm currently working on integrating it into my suite of trading strategies.

TradeQuantiX
TradeQuantiX
Multi-country systematic trader (+4.7K subscribers)
❝

I traded discretionary for over a decade and kept putting off going systematic because I did not know where to start. Having a finished, tested system to take apart was what finally got me moving.

Daniel
Daniel
Crypto trader
❝

I have run it live since 2024 and it is still in my portfolio. It also changed how I test the systems I build myself.

Systematic Traders
Systematic Traders
Algo trader & Substack writer (+6.4K subscribers)

FAQ

What is RealTest Low Drawdown Nasdaq Mean Reversion Strategy?
A RealTest mean-reversion strategy for Nasdaq 100 stocks that sizes each position by current market volatility. It buys oversold pullbacks in the Connors and Alvarez style, then automatically holds less when markets turn turbulent, which is what keeps its drawdowns shallow. Tested on survivorship-free Norgate data with commissions modeled, and trading live since January 2025.
Why should this edge keep working?
Mean reversion buys stocks that have sold off too hard and waits for the recovery. The usual problem is that the same volatility that creates those setups also drives the deep drawdowns, because a plain strategy is fully exposed when the market is at its wildest. This strategy measures volatility as it changes and scales its exposure to match, holding smaller in turbulent conditions and larger in calm ones, so the drawdowns stay shallow while the mean-reversion edge stays intact. Volatility-scaled position sizing is a standard, well-tested risk technique.
Do I need RealTest to run this strategy, or can I use Python?
No. The .py runs in Python 3 without RealTest. The .rts runs in RealTest by MHP Trading, including the free version. The plain text rules work in any software.
How was this backtested?
Survivorship-free Norgate data from January 2000 to the present, with out-of-sample walk-forward analysis and over 1000 Monte Carlo simulations to test stability.
Are transaction costs included?
Yes. The results include Interactive Brokers commissions and a limit-order buffer of 0.1% past limit, so the equity curve is after costs.
When did live trading start?
Live trading started in January 2025. The equity curve shows the backtest from 2000 and real performance from that point on.
What's included in the download?
RealTest strategy code (.rts). Plain text rules. Python backtest code (.py).
How does it compare to SPY?
The chart at the top plots this strategy against SPY, the S&P 500 ETF, from 2000 with both starting at $100,000. A metrics table lists the exact numbers side by side: Sharpe, Sortino, net profit and worst year, for the strategy and for SPY over the same period.
Can I modify the code?
Yes. You get the complete source code (both RealTest and Python) with a perpetual single-user license. You can freely adjust parameters, rewrite position sizing, combine rules with other strategies, or embed the logic into your own custom quant pipeline.
What market data do I need?
Norgate Data (US Stocks Platinum, EOD), the data behind this backtest. The .rts and the .py read it directly.
Can I automate execution?
Yes. In RealTest, you can send orders to Interactive Brokers through OrderClerk. With the Python code, you can connect to Interactive Brokers or Alpaca directly.
Can I ask questions about the code or the strategy?
Yes. Email info@setupalpha.com and you will get an answer, before or after you buy.

Changelog

2025-01-02Rules locked. Live trading starts.

No rule changes since.

Portfolio growth since 2000
1,473.3%
SPY same period: 465.3%
$999one-time
Instant download
MetricStrategySPY
Sharpe1.360.46
ROR10.81%–
Sortino1.220.44
MAR1.06–
Net profit$1.5M$465k
Expectancy0.98%–
Max exposure99.73%100%
Worst year-1.5%-33.2%

Download the complete strategy now

Active Script - C:\REALTEST\Strategies\low_drawdown_nasdaq_mean_reversion.rts
RealTest Low Drawdown Nasdaq Mean Reversion Strategy full RealTest script
Python programming logo for quantitative trading backtest
Python backtest code (.py)
Open it in Python and run the backtest.
RealTest Low Drawdown Nasdaq Mean Reversion Strategy
$999one-time
Instant download