RealTest Strategies / RealTest Nasdaq 100 Mean-Reversion Strategy

RealTest Nasdaq 100 Mean-Reversion Strategy

A RealTest mean-reversion strategy that buys oversold Nasdaq 100 stocks and enters at the next open. It works the higher-beta end of the market, where sharper selloffs tend to be followed by sharper recoveries. Tested on survivorship-bias-free Norgate data with Interactive Brokers commissions modeled, and trading live since March 2024.

Live traded since Mar 2024Trading costs included Survivorship-bias-free data
$100k$300k$1.0M$3.0M$10.0M'02'04'06'08'10'12'14'16'18'20'22'24'26 Live $22.7M $592k
Strategy SPY buy & hold
Sharpe ratio?
1.04
+117%vs SPY 0.48
Best year?
+57.3%
2.1×SPY best: 27.0% in 2003
Max drawdown?
-28.4%
43% smallervs SPY -49.9%

Validated four ways

See how each test is run →

Live market performance
Performs in real market conditions since 2024-03-01
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 51.6% -41.8%
2008 financial crisis Oct 2007 – Mar 2009 -9.2% -49.9%
COVID-19 crash Feb 2020 – Mar 2020 -16.2% -28.7%
2022 bear market Jan 2022 – Oct 2022 1.0% -21.3%

Strategy monthly returns

JanFebMarAprMayJunJulAugSepOctNovDecYear
20002.513.8-8.94.7-4.87.6-2.96.25.55.8-3.819.650.9%
20012.02.8-2.84.10.19.65.1-2.7-17.410.13.35.618.3%
20022.40.81.6-2.40.9-3.9-7.05.90.95.94.70.910.3%
20034.62.22.18.13.7-0.5-3.1-0.3-2.48.93.30.029.0%
2004-4.3-0.30.31.211.6-3.1-9.12.00.44.61.45.18.6%
2005-8.6-2.06.5-4.74.5-0.70.40.2-1.02.51.01.0-1.8%
20066.9-4.82.2-0.5-8.35.71.33.93.03.95.33.022.4%
2007-0.9-2.52.80.72.17.63.211.01.70.90.9-0.529.7%
2008-16.51.9-1.27.05.41.01.70.61.0-11.25.50.7-6.7%
20091.0-1.8-0.38.86.0-4.42.64.77.1-2.33.15.833.8%
2010-7.58.92.33.9-2.3-5.66.6-1.63.40.0-1.21.67.6%
20110.92.51.93.07.3-3.6-2.32.14.46.74.42.834.0%
2012-0.60.41.11.3-5.20.55.10.6-1.7-0.81.81.13.3%
20131.52.43.0-1.4-0.55.80.54.71.8-0.42.86.629.9%
201416.42.9-6.99.94.41.3-1.31.50.90.60.00.532.2%
2015-1.3-0.53.51.82.2-1.80.41.50.23.62.25.318.2%
2016-5.22.92.61.54.92.80.02.63.0-0.20.85.823.3%
20171.20.90.40.52.8-1.0-2.24.31.40.70.00.09.2%
20180.4-1.40.5-0.10.5-1.42.91.61.90.8-0.0-2.82.8%
20191.62.01.30.00.94.51.52.5-1.94.31.02.421.9%
2020-1.62.0-0.710.87.65.21.72.612.3-5.010.42.557.3%
20213.1-4.38.14.01.00.56.25.61.9-0.23.76.842.2%
2022-1.29.32.5-1.81.5-3.33.7-6.2-0.70.68.51.914.4%
20232.4-0.46.82.01.82.25.1-2.0-0.2-2.63.03.823.9%
20244.48.15.20.43.74.8-4.4-3.33.20.95.5-2.927.7%
202514.2-13.8-2.39.76.94.80.07.64.65.32.93.148.5%
2026-1.24.1-4.61.05.119.34.10.75.837.9%

Strategy overview

Why it trades high-beta names

Nasdaq 100 stocks move more than the broad market, in both directions. For a mean-reversion strategy that movement is useful. A sharper selloff pushes a stock further from its recent range, and the recovery that follows tends to be larger than it would be in a slower universe. The strategy looks for these oversold, stretched names and takes the reversion when it comes.

How it was tested

The backtest runs on Nasdaq 100 constituents including names later removed from the index, so survivorship bias does not inflate the results. Interactive Brokers commissions and per-side slippage are modeled, so the equity curve is after real costs. The rules stay simple and use few parameters, and the strategy was checked with walk-forward analysis and Monte Carlo simulation. Both are shown on this page.

How it fits your trading

This is the more active mean-reversion engine in the lineup. It enters with market-on-open orders so it reliably takes part in the recovery moves it is built to catch, and it moves more than a large-cap system, which is the source of its larger reversion premium. Position sizing is set in the RealTest source, so you can scale the exposure to your own risk, and it pairs naturally with a calmer strategy that smooths the overall ride.

Specification

StyleMean reversionUniverseNasdaq 100 current & past stocksTimeframeDailySideLongAverage hold5 trading daysTrade frequency6.7 per monthEntry executionMarket on openExit executionMarket on openDataNorgate Data (US Stocks Platinum) SoftwareRealTestCommission$0.005 / shareSlippage0.01% per sideSPY 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.

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 Nasdaq 100 Mean-Reversion Strategy?
A RealTest mean-reversion strategy that buys oversold Nasdaq 100 stocks and enters at the next open. It works the higher-beta end of the market, where sharper selloffs tend to be followed by sharper recoveries. Tested on survivorship-bias-free Norgate data with Interactive Brokers commissions modeled, and trading live since March 2024.
Why should this edge keep working?
Nasdaq 100 stocks move more than the broad market, so when one sells off sharply it often ends up further from its recent range than a slower stock would. Mean reversion works on that gap, and the larger the stretch, the larger the recovery tends to be. The strategy buys these oversold names and enters at the next open to take part in the snap-back. This is a standard feature of how high-beta stocks trade, not a one-time pattern.
What is RealTest and what software do I need?
RealTest is a backtesting and trade automation platform for systematic traders, built by Martin Parker at MHP Trading. Each strategy comes as an .rts file you import directly. To trade it live you add OrderClerk and an Interactive Brokers account.
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, slippage of 0.01% per side, so the equity curve is after costs.
When did live trading start?
Live trading started in March 2024. The equity curve shows the backtest from 2000 and real performance from that point on.
What's included in the download?
RealTest .rts file (complete source). Plain-text trading rules. 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 with a perpetual license, so you can adjust parameters, change position sizing, combine it with other systems, or use it as a starting point for your own research.
What market data do I need?
Norgate Data (recommended) for survivorship-free US equities. Yahoo Finance works for basic testing but lacks delisted stocks. The backtest results shown here use Norgate Platinum.
Can I automate execution?
RealTest to OrderClerk to Interactive Brokers. Generate signals daily in RealTest, execute automatically via OrderClerk to IBKR. Setup course available.
Can I ask questions about the code or the strategy?
Yes. Email setupalpha.capital@gmail.com and you will get an answer, before or after you buy.

Changelog

2024-03-01Rules finalised. Live tracking starts.

No rule changes since.

Portfolio growth since 2000
22,636.3%
SPY same period: 492.5%
$980one-time
Instant download
MetricStrategySPY
Sharpe1.040.48
ROR22.6%
Sortino0.830.46
MAR0.8
Net profit$22.6M$492k
Expectancy1.34%
Max exposure106.1%100%
Worst year-6.7%-33.2%

Download the complete strategy now

Active Script - C:\REALTEST\Strategies\nasdaq_100_mean_reversion.rts
RealTest Nasdaq 100 Mean-Reversion Strategy full RealTest script
Trading strategy rules plain text document
Plain text rules
Trade it on any platform without reading the code.
RealTest Nasdaq 100 Mean-Reversion Strategy
$980one-time
Instant download