RealTest SPX Mean-Reversion
A systematic mean-reversion strategy for S&P 500 stocks built in RealTest. It identifies statistically oversold conditions using rate-of-decline filters and enters via limit orders to provide liquidity during broad selloffs. Backtested since 2000 with survivorship-bias-free Norgate data, validated through walk-forward analysis and Monte Carlo simulation.
Validated four ways
What happened in every crash
| Crisis | Dates | Strategy | SPY | Same $100k in |
|---|---|---|---|---|
| Dotcom crash | Mar 2000 – Oct 2002 | 108.3% | -41.8% | |
| 2008 financial crisis | Oct 2007 – Mar 2009 | 13.4% | -49.9% | |
| COVID-19 crash | Feb 2020 – Mar 2020 | -0.5% | -28.7% | |
| 2022 bear market | Jan 2022 – Oct 2022 | 22.8% | -21.3% |
Strategy monthly returns
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Year | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2000 | 6.5 | 17.7 | 13.7 | 12.7 | 13.6 | 4.6 | -0.9 | -0.2 | 3.0 | 16.8 | 4.9 | 1.1 | 140.8% |
| 2001 | -2.7 | 6.7 | 3.5 | 1.7 | 0.5 | 0.8 | 7.2 | -0.3 | -9.0 | -0.8 | 2.5 | 2.3 | 12.0% |
| 2002 | -1.7 | 2.0 | -1.8 | 2.0 | 0.1 | 1.9 | -3.2 | 1.9 | 4.0 | 3.8 | 2.2 | 2.0 | 13.6% |
| 2003 | -2.8 | 3.3 | 1.0 | 0.0 | 6.1 | 0.3 | 4.3 | 1.7 | 2.9 | 1.0 | 3.4 | 0.0 | 23.0% |
| 2004 | 2.2 | 0.9 | 2.7 | -4.5 | 1.2 | 0.0 | -1.7 | 2.3 | 0.0 | 0.4 | -0.7 | 0.9 | 3.5% |
| 2005 | -4.5 | -0.2 | 3.9 | 3.3 | 0.2 | 1.0 | -0.2 | 0.0 | 2.1 | -3.2 | 0.0 | 1.9 | 4.0% |
| 2006 | 6.2 | 0.2 | 6.8 | 0.8 | -6.5 | 3.6 | 0.9 | 0.0 | 0.0 | 2.1 | 0.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7.0 | 3.4% |
| 2019 | -0.1 | 0.0 | 2.6 | 0.0 | -0.8 | 3.6 | 0.0 | 1.4 | 0.0 | 2.0 | 0.0 | 4.3 | 13.6% |
| 2020 | -1.8 | 0.4 | 7.5 | -0.3 | 2.4 | 3.3 | 1.4 | 0.0 | 2.7 | 0.4 | 7.5 | 0.3 | 25.9% |
| 2021 | 0.0 | 1.0 | 17.5 | 4.9 | 1.9 | 2.0 | 7.6 | 6.6 | 4.3 | 0.8 | 0.0 | 6.3 | 66.0% |
| 2022 | 2.2 | 6.7 | 11.6 | 5.7 | 6.2 | -13.9 | 3.0 | 2.1 | -2.1 | 3.8 | 4.1 | 1.2 | 32.4% |
| 2023 | 0.5 | -2.9 | -2.8 | 0.4 | -1.3 | 0.5 | 0.0 | 1.7 | -0.3 | -1.6 | 3.7 | 0.0 | -2.3% |
| 2024 | 2.7 | 0.0 | 1.4 | 3.7 | 0.5 | 4.5 | 1.5 | 0.5 | 4.6 | 0.0 | 0.0 | 0.1 | 21.0% |
| 2025 | 4.3 | -6.8 | -1.2 | 2.7 | 0.9 | 0.0 | 0.0 | 6.4 | 0.0 | 0.0 | 3.4 | 5.7 | 15.7% |
| 2026 | 3.2 | 0.4 | 5.2 | 0.5 | 0.0 | 0.1 | -1.5 | 0.8 | 0.0 | 8.8% |
Strategy overview
Specification
What you get


Quick start & live trading
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.
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.
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.
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.
FAQ
What is RealTest SPX Mean-Reversion?
What is RealTest and what software do I need?
How was this backtested?
Are transaction costs included?
When did live trading start?
What's included in the download?
How does it compare to SPY?
Can I modify the code?
What market data do I need?
Can I automate execution?
Can I ask questions about the code or the strategy?
Changelog
No rule changes since.
| Metric | Strategy | SPY |
| Sharpe | 1.16 | 0.48 |
| ROR | 19.74% | – |
| Sortino | 0.81 | 0.46 |
| MAR | 0.9 | – |
| Net profit | $12.2M | $492k |
| Expectancy | 2.47% | – |
| Max exposure | 100.53% | 100% |
| Worst year | -2.3% | -33.2% |
Download the complete strategy now





