RealTest Strategies / RealTest Weekly Pullback Strategy

RealTest Weekly Pullback Strategy

A RealTest strategy that buys S&P 500 stocks on early-week weakness and sells into the Friday close, holding only across the trading week. It works a seasonal pattern that has shown up for decades, where stocks tend to dip early and firm up later in the week. Tested on survivorship-free Norgate data with commissions modeled, and trading live since March 2025.

Live traded since Mar 2025Trading costs included Survivorship-bias-free data
$100k$300k$1.0M$3.0M'02'04'06'08'10'12'14'16'18'20'22'24'26 Live $6.5M $592k
Strategy SPY buy & hold
Sharpe ratio?
1.03
+115%vs SPY 0.48
Best year?
+54.6%
2.0×SPY best: 27.0% in 2003
Max drawdown?
-23.5%
53% smallervs SPY -49.9%

Validated four ways

See how each test is run →

Live market performance
Performs in real market conditions since 2025-03-10
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 36.5% -41.8%
2008 financial crisis Oct 2007 – Mar 2009 -5.6% -49.9%
COVID-19 crash Feb 2020 – Mar 2020 -4.1% -28.7%
2022 bear market Jan 2022 – Oct 2022 21.8% -21.3%

Strategy monthly returns

JanFebMarAprMayJunJulAugSepOctNovDecYear
2000-0.26.26.15.69.0-2.3-0.34.5-6.811.28.94.054.6%
20014.3-1.21.92.5-0.6-3.70.8-0.6-17.5-0.60.06.7-9.5%
20021.8-2.45.3-0.64.7-2.1-7.31.93.51.0-1.51.55.3%
2003-1.2-0.12.05.26.0-0.1-0.64.7-6.27.61.9-0.719.1%
20042.6-0.61.8-3.88.01.7-4.22.14.9-1.53.92.017.5%
2005-2.95.01.4-1.97.82.40.20.42.50.66.91.325.6%
20066.8-1.07.11.8-1.9-0.0-0.81.24.25.2-0.2-0.923.2%
2007-4.1-2.7-1.2-0.33.3-1.2-0.43.23.37.70.40.98.5%
2008-9.90.26.72.65.01.6-7.7-1.2-2.7-3.10.50.0-8.8%
20090.0-1.5-2.0-1.311.10.40.24.25.42.74.22.027.7%
2010-5.74.23.5-1.3-7.7-4.36.33.11.8-0.01.93.34.0%
20112.03.9-0.83.83.0-1.7-1.2-1.22.61.32.40.215.1%
20120.92.04.75.0-3.22.23.9-0.50.8-1.7-2.32.114.4%
20133.23.42.80.04.5-0.43.2-0.13.83.80.0-0.825.8%
2014-6.33.4-1.05.30.55.6-3.62.7-0.7-6.02.91.03.0%
2015-0.92.30.2-4.74.30.92.78.9-3.54.43.13.222.2%
2016-2.12.81.0-0.82.53.4-0.1-1.45.8-1.20.31.011.5%
20170.94.0-1.2-1.83.20.80.11.01.43.33.83.320.2%
20182.7-2.82.3-0.23.5-0.22.51.83.0-8.6-0.3-2.01.0%
20191.01.75.5-5.6-0.32.7-0.51.12.62.0-1.50.39.1%
2020-1.1-1.00.70.03.27.41.8-1.66.8-1.35.20.922.5%
2021-1.2-2.37.32.1-4.5-3.81.00.9-0.25.22.18.014.6%
20225.62.73.86.55.7-12.10.81.55.42.52.71.127.9%
20230.83.92.94.0-2.34.74.03.6-2.24.12.45.135.3%
20246.57.38.0-2.6-1.12.40.56.54.1-5.15.0-2.331.9%
20252.3-10.6-1.93.92.80.70.75.33.50.89.20.817.5%
202610.5-0.06.0-1.41.93.15.23.41.533.8%

Strategy overview

Why the pattern exists

Short-term buying and selling in the stock market is not spread evenly across the week. Stocks have tended to come under pressure early in the week and firm up into the weekend, a pattern that has held across many years of data. The strategy buys into that early-week softness and closes out by Friday, so it is positioned for the recovery part of the week rather than guessing at direction.

How it was tested

The backtest runs on S&P 500 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 rule is simple and uses few parameters, which matters most for a pattern like this, and it was checked with walk-forward analysis. Results are shown on this page.

How it fits your trading

Positions are only held during the trading week, so there is no exposure over the weekend and no overnight gap risk from Friday to Monday. It trades often but briefly, which keeps capital moving, and its weekly rhythm is different from a trend or breakout system, so it adds a source of return that does not depend on a market that keeps rising. The rules are simple enough to run without much screen time.

Specification

StyleMean reversionUniverseS&P 500 current & past stocksTimeframeWeeklySideLongAverage hold3 trading daysTrade frequency16.2 per monthEntry executionLimit orderExit executionLimit & marketDataNorgate Data (US Stocks Platinum) SoftwareRealTestCommission$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.

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 Weekly Pullback Strategy?
A RealTest strategy that buys S&P 500 stocks on early-week weakness and sells into the Friday close, holding only across the trading week. It works a seasonal pattern that has shown up for decades, where stocks tend to dip early and firm up later in the week. Tested on survivorship-free Norgate data with commissions modeled, and trading live since March 2025.
Why should this edge keep working?
Short-term buying and selling is not spread evenly across the week. Stocks have tended to come under pressure early in the week and firm up into the weekend, a pattern visible across many years of data. The strategy buys that early-week softness and closes by Friday, so it holds only through the recovery part of the week and carries no weekend risk. Weekly seasonality is a long-standing market pattern, not a one-time result.
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, 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 March 2025. 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

2025-03-10Rules finalised. Live tracking starts.

No rule changes since.

Portfolio growth since 2000
6,416.8%
SPY same period: 492.5%
$899one-time
Instant download
MetricStrategySPY
Sharpe1.030.48
ROR16.88%
Sortino0.930.46
MAR0.72
Net profit$6.4M$492k
Expectancy0.49%
Max exposure98.36%100%
Worst year-9.5%-33.2%

Download the complete strategy now

Active Script - C:\REALTEST\Strategies\weekly_pullback.rts
RealTest Weekly Pullback Strategy full RealTest script
Trading strategy rules plain text document
Plain text rules
Trade it on any platform without reading the code.
RealTest Weekly Pullback Strategy
$899one-time
Instant download