RealTest Strategies / RealTest Mean Reversion Trading Strategy

RealTest Mean Reversion Trading Strategy

A mean-reversion strategy for S&P 500 stocks that adds a candlestick reversal confirmation filter before entry. By requiring a specific price-action signature of seller exhaustion, it reduces drawdowns compared to naive oversold-entry approaches. Backtested since 2000 with Norgate data and walk-forward validation.

Beating SPY
Loading...
Live Market Performing
Performs in live market conditions since 2024-05-01
Premium

Strategy Overview

Candlestick Reversal Filter

Most mean-reversion strategies enter purely on an oversold reading, which can result in buying stocks that continue to decline. This strategy adds a candlestick reversal confirmation filter that requires a specific price-action signature indicating seller exhaustion before generating an entry signal. This additional filter reduces the frequency of trades but improves the quality of entries by avoiding positions in stocks with no sign of stabilization.

Drawdown Reduction Mechanism

The primary benefit of the candlestick filter is drawdown reduction. By waiting for a confirmation signal rather than entering on the first oversold reading, the strategy avoids many of the worst entries that occur during cascading selloffs. Backtest results show meaningfully lower maximum drawdown compared to similar strategies without this filter, with a modest reduction in trade frequency as the trade-off.

S&P 500 Universe and Validation

The strategy trades S&P 500 constituents, providing a liquid and well-covered universe. It has been backtested since 2000 using Norgate survivorship-bias-free data with Interactive Brokers commissions. Walk-forward analysis and Monte Carlo simulation results are available on the product page to evaluate out-of-sample robustness and parameter sensitivity.

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
Full strategy logic in plain text. Clear rules for implementation on any trading platform.

Advanced Backtest Insights

Statistical Edge Verification

Science, governed by mathematics

RealTest trading software logo

Quick start guide

From download to first backtest in 1 minutes

OrderClerk automated trading execution interface

Daily Live Trading

For RealTest automated execution

Total daily time: ~5 minutes

Get OrderClerk automation course →

Strategy Details

Model assumptions

Included in Backtest

Commission$0.005 / Share
Limit Price Buffer0.05% Past Limit

SPY Buy & Hold Benchmark

Does not include any transaction fees, slippage, or management costs.

Portfolio Builder & Simulator

Visualize your diversification edge

Instantly simulate how this strategy improves your existing portfolio. Check correlations, optimize allocations, and verify the smoothed equity curve before you deploy.

Generate Correlation Matrix
Optimize Capital Allocation
Simulate Combined Metrics
Visual Performance Comparison
Open Strategy Combiner →

Strategy Code Preview

RealTest full source code included in download

RealTest Mean Reversion Trading Strategy RealTest code structure

Pick Your Strategy Below

Demo Strategy

$ 0 one-time

Free RealTest demo mean reversion strategy.

  • RealTest .rts file
  • Robustness Verified
  • Does not include RealTest Mean Reversion Trading Strategy
RealTest Users' Favorite

RealTest Mean Reversion Trading Strategy

$ 999 one-time

Full strategy code and rules.

  • ...% Portfolio Growth
  • In-Sample / Out-of-Sample Validated
  • Survivor-Bias Free
  • Outperforms SPY Benchmark
  • Fully Customizable Source Code
  • Download Once, Use Forever

Multi-Strategies Bundle

$ 2,700 one-time

Instant diversification. You own our complete suite of uncorrelated, robust strategies.

No Coding Needed

How To Use

Download strategy, open RealTest, click "import" and "test".

You may also like

Common Questions

A mean-reversion strategy for S&P 500 stocks that adds a candlestick reversal confirmation filter before entry. By requiring a specific price-action signature of seller exhaustion, it reduces drawdowns compared to naive oversold-entry approaches. Backtested since 2000 with Norgate data and walk-forward validation.
RealTest by Martin Parker (MHP Trading). Strategies are delivered as .rts files for direct import. For live execution: OrderClerk + Interactive Brokers.
Survivorship-bias-free data from Norgate (January 2000 to present). Walk Forward Analysis for out-of-sample validation. 1000+ Monte Carlo simulations for statistical robustness. No cherry-picked parameters.
Interactive Brokers tiered commission structure is modeled. Limit order buffer: 0.05% Past Limit.
2024-05-01. The equity curve shows both backtest (from 2000) and real performance afterward.
RealTest .rts file (complete source). Plain-text trading rules. Full documentation with parameter explanations.
The equity curve above plots RealTest Mean Reversion Trading Strategy against SPY (S&P 500 ETF) from 2000. Key metrics: CAGR, Maximum Drawdown, Sharpe, Sortino.
Complete source code, perpetual license. Modify parameters, adjust position sizing, combine with other systems, or use as a starting point for your own research. No restrictions.
Norgate Data (recommended) for survivorship-bias-free US equities. Yahoo Finance works for basic testing but lacks delisted stocks. The backtest results shown here use Norgate Platinum.
RealTest to OrderClerk to Interactive Brokers. Generate signals daily in RealTest, execute automatically via OrderClerk to IBKR. Free setup course available.