RealTest Strategies / RealTest Modern Breakout Strategy

RealTest Modern Breakout Strategy

A RealTest breakout strategy that buys S&P 500 stocks breaking to new highs inside an uptrend, then rides them with a trailing stop and cuts the ones that fail. It keeps the rules few and lets the winners do the work. Tested on survivorship-free Norgate data with commissions modeled, and trading live since February 2023.

Live traded since Feb 2023Trading costs included Survivorship-bias-free data
$100k$300k$1.0M$3.0M$10.0M'03'05'07'09'11'13'15'17'19'21'23'25 Live $10.3M $663k
Strategy SPY buy & hold
Sharpe ratio?
1.13
+117%vs SPY 0.52
Best year?
+90.2%
3.3×SPY best: 27.3% in 2003
Max drawdown?
-23.5%
53% smallervs SPY -50.2%

Validated four ways

See how each test is run →

Live market performance
Performs in real market conditions since 2023-02-03
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 -0.7% -37.7%
2008 financial crisis Oct 2007 – Mar 2009 -3.9% -50.2%
COVID-19 crash Feb 2020 – Mar 2020 -16.1% -28.8%
2022 bear market Jan 2022 – Oct 2022 -12.3% -21.3%

Strategy monthly returns

JanFebMarAprMayJunJulAugSepOctNovDecYear
20010.00.00.00.00.00.00.00.00.00.00.00.00.0%
20021.5-1.1-1.10.00.00.00.00.00.00.00.00.0-0.7%
20030.00.00.06.726.5-0.97.98.41.614.05.4-0.490.2%
200417.6-2.2-3.9-11.512.04.5-11.82.12.66.912.75.935.1%
20057.95.0-5.2-8.15.3-1.26.47.68.06.211.11.452.0%
20063.0-2.0-2.72.6-7.32.1-0.53.31.36.4-1.33.37.7%
20074.9-0.67.18.6-0.6-0.8-4.7-1.90.9-0.20.20.313.1%
2008-2.2-1.7-0.00.00.00.00.00.00.00.00.00.0-3.9%
20090.00.00.00.00.00.23.85.54.5-4.49.52.122.5%
2010-2.82.86.80.5-11.2-2.10.1-0.04.22.63.25.28.4%
20110.15.80.81.70.3-1.5-2.4-7.70.0-0.2-0.80.0-4.4%
20120.60.51.5-4.4-7.16.01.08.33.11.84.8-3.212.5%
20135.711.35.04.85.6-4.710.03.65.57.87.51.183.3%
20146.76.8-9.9-5.92.41.9-3.02.8-0.0-0.45.10.96.2%
20153.88.1-0.20.30.73.06.6-9.0-0.80.4-0.80.912.7%
2016-1.4-0.53.80.2-1.61.24.3-1.30.90.04.73.013.8%
20174.2-1.67.8-0.912.4-1.34.91.57.09.4-1.0-2.346.5%
201819.12.4-1.0-2.313.3-0.5-3.68.20.8-9.4-0.70.025.6%
20190.02.0-2.22.5-5.64.2-0.7-5.71.40.93.75.04.9%
2020-2.1-3.9-0.54.01.3-1.610.110.8-3.5-4.114.9-1.723.8%
20210.18.14.02.51.52.44.54.3-2.67.92.90.041.4%
2022-3.9-1.6-3.1-0.23.7-6.5-1.20.00.00.00.00.0-12.4%
20230.0-4.212.03.75.211.63.6-0.2-5.6-2.77.34.138.6%
20249.519.55.7-6.112.27.0-1.54.94.83.24.7-2.777.5%
20252.5-2.8-8.9-3.30.81.3-2.1-1.83.6-0.71.71.0-8.9%
20265.21.2-10.56.4-4.3-0.3-1.3-0.11.2-3.5%

Strategy overview

Why the breakout works

A stock breaking to a new high inside an uptrend is a stock where buyers are willing to pay more than anyone has before. That usually means demand is overwhelming supply, and moves like that tend to continue as more buyers step in and larger holders build positions. The strategy buys that break, stays with it while the trend holds, and steps aside when it does not, so the winners get room to run while the losers are cut early.

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 strategy uses very few parameters and leans on price action rather than a stack of indicators, which keeps the risk of curve-fitting low. It was checked with walk-forward analysis, shown on this page.

How it fits your trading

This is a patient strategy that trades only when a real breakout lines up, so it spends time in cash between moves and does not force trades. It has been running live since early 2023, which is a longer real-money record than most systems offer. Because it makes its money in trending markets, it balances well against a mean-reversion strategy that does better in choppy ones.

Specification

StyleBreakoutUniverseS&P 500 current & past stocksTimeframeDailySideLongAverage hold115 trading daysTrade frequency7 per yearEntry executionLimit orderExit executionMarket on openDataNorgate 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 Modern Breakout Strategy?
A RealTest breakout strategy that buys S&P 500 stocks breaking to new highs inside an uptrend, then rides them with a trailing stop and cuts the ones that fail. It keeps the rules few and lets the winners do the work. Tested on survivorship-free Norgate data with commissions modeled, and trading live since February 2023.
Why should this edge keep working?
A stock breaking to a new high inside an uptrend is one where buyers are paying more than anyone has before, which usually means demand is overwhelming supply. Moves like that tend to continue as more buyers step in and larger holders build positions. The strategy buys the break, holds while the trend lasts, and exits when it fails, so winners run and losers are cut early. Trend and breakout momentum is one of the most studied and durable effects in markets.
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 2001 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 February 2023. The equity curve shows the backtest from 2001 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 2001 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

2023-02-03Rules finalised. Live tracking starts.

No rule changes since.

Portfolio growth since 2001
10,249.0%
SPY same period: 563.1%
$899one-time
Instant download
MetricStrategySPY
Sharpe1.130.52
ROR20.71%
Sortino1.010.5
MAR0.88
Net profit$10.2M$563k
Expectancy20.21%
Max exposure99.74%100%
Worst year-12.4%-33.4%

Download the complete strategy now

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