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 Live $1.5M $589k
Strategy SPY buy & hold
Sharpe ratio?
1.36
+183%vs SPY 0.48
Best year?
+46.2%
1.7×SPY best: 27.0% in 2003
Max drawdown?
-9.4%
81% smallervs SPY -49.9%

Validated four ways

See how each test is run →

Live market performance
Performs in real market conditions since 2025-01-02
Verified
Statistical validation
Validated across in-sample & out-of-sample data
Passed
Walk forward analysis
Tests robustness across unseen data
Passed
Monte Carlo stress test
Resilient against 1,000+ sequence risk simulations
Passed

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-8.710.4%

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 stocksTimeframeDailySideLongAverage hold4 trading daysTrade frequency9.1 per monthEntry executionLimit orderExit executionLimit & marketDataNorgate Data (US Stocks Platinum) 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)
Complete RealTest (.rts) strategy code. Import, backtest, and modify.
Trading strategy rules plain text document
Plain text rules
Trade it on any platform without reading the code.
Python programming logo for quantitative trading backtest
Python backtest code (.py)
Full Python script. Implements the exact same strategy rules for independent backtesting.

Quick start & live trading

RealTest trading software logo
Quick start guide
From download to first backtest in 1 minute
1
You download the .rts file
Click download
2
You open it in RealTest
File → Open → Select file
3
You import symbols
Click import
4
You run the backtest
Click test
OrderClerk automated trading execution interface
Daily live trading
For RealTest automated execution
1
Open OrderClerk
Click 'Connect to IB'
2
Import signals
Click 'Import' in RealTest
3
Generate orders
Click 'Orders' in RealTest
4
Execute trades
Click 'Place Orders'

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, you do not need RealTest if you use Python. This strategy includes a complete, standalone Python implementation (.py) alongside the RealTest (.rts) script and plain-text rules. You can run, backtest, and modify the strategy directly in Python (using libraries like pandas, NumPy, vectorbt, etc.) with your own data source. If you prefer a turnkey trading platform, RealTest is fully supported for one-click backtests and automated live execution via OrderClerk and Interactive Brokers.
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?
Complete RealTest .rts source code. Full Python implementation (.py script for independent backtesting). Plain-text trading rules document. Full documentation with parameter explanations.
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?
For RealTest, Norgate Data (US Stocks Platinum) is recommended for survivorship-free testing. For Python, you can use your own historical data (CSV/Parquet), Norgate, or free sources like Yahoo Finance for exploratory testing. The benchmark backtest metrics shown here use survivorship-free Norgate Platinum data.
Can I automate execution?
Yes. For RealTest users: daily signals are generated in RealTest and automated via OrderClerk directly to Interactive Brokers (automation course available). For Python users: you can generate signals directly in your Python workflow and route orders to Interactive Brokers (via the IBKR API / ib_insync) or any broker that supports an API.
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 finalised. Live tracking starts.

No rule changes since.

Portfolio growth since 2000
1,444.3%
SPY same period: 489.0%
$999one-time
Instant download
MetricStrategySPY
Sharpe1.360.48
ROR10.78%–
Sortino1.230.45
MAR1.15–
Net profit$1.4M$489k
Expectancy0.97%–
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)
Full Python script. Implements the exact same strategy rules for independent backtesting.
RealTest Low Drawdown Nasdaq Mean Reversion Strategy
$999one-time
Instant download