RealTest strategies / RealTest NASDAQ Momentum Rotation

RealTest NASDAQ Momentum Rotation

A RealTest momentum rotation strategy that holds the strongest NASDAQ 100 stocks and re-ranks once a month. It scores momentum across two timeframes rather than one, so it leans toward stocks with steady strength rather than names that have just spiked. An entry filter and automatic position scaling manage the risk. Tested on survivorship-free Norgate data with commissions modeled, and trading live since February 2026.

Live traded since Feb 2026Trading 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 In-sample Out-of-sample Live $18.4M $583k
Strategy SPY buy & hold
Sharpe ratio?
0.84
+79%vs SPY 0.47
Best year?
+109.7%
4.1×SPY best: 27.0% in 2003
Max drawdown?
-49.7%
1% smallervs SPY -49.9%

Robustness and stress testing

See how results changed when we varied the settings, assumptions or trades.

What if trading costs are higher or fills come a day late?

Nasdaq Momentum Rotation RealTest strategy cost stress test: backtest equity curves with commissions and slippage from zero to 10 times baseline and a one-day fill delay

See how each test is run →

What happened in every crash

CrisisDatesStrategySPYSame $100k in
Dotcom crash Mar 2000 – Oct 2002 -35.7% -41.8%
2008 financial crisis Oct 2007 – Mar 2009 -23.3% -49.9%
COVID-19 crash Feb 2020 – Mar 2020 -27.1% -28.7%
2022 bear market Jan 2022 – Oct 2022 -24.5% -21.3%

Strategy monthly returns

JanFebMarAprMayJunJulAugSepOctNovDecYear
2000-4.353.4-9.8-9.0-8.212.04.517.3-4.7-10.4-19.51.45.8%
20010.00.00.00.00.00.00.00.00.00.00.00.00.0%
20020.00.00.00.00.00.00.00.00.00.00.00.00.0%
20030.00.00.00.017.3-1.32.88.9-1.312.10.3-3.339.2%
20041.7-1.2-3.2-4.06.85.0-10.7-2.76.29.56.4-1.311.1%
2005-5.04.50.8-4.23.8-3.14.83.26.44.98.42.329.3%
20068.3-3.97.01.4-8.00.10.0-0.62.05.93.70.416.4%
20071.2-0.70.41.87.06.93.910.214.26.9-7.0-0.651.9%
2008-16.01.91.91.16.2-9.0-1.8-0.8-0.8-1.2-0.00.0-18.6%
20090.00.00.00.0-1.60.13.82.06.0-6.110.42.217.2%
2010-7.28.45.84.1-8.1-4.95.3-4.09.74.62.31.316.5%
20111.15.24.74.9-3.11.6-1.6-4.9-3.22.01.01.08.4%
20125.24.96.52.6-4.80.90.84.71.8-6.90.21.017.3%
20133.71.97.20.16.5-0.77.8-0.311.6-1.76.82.855.3%
20146.87.7-7.0-0.56.68.1-3.48.30.82.05.1-1.037.1%
2015-0.36.2-1.3-3.05.8-2.73.8-5.9-3.45.03.6-0.07.1%
2016-8.5-3.15.21.05.70.77.12.23.5-0.97.94.126.5%
20179.70.73.9-0.215.3-3.36.22.11.79.0-1.1-4.345.2%
201817.3-0.9-3.4-0.712.50.70.56.40.7-14.72.0-1.916.1%
2019-0.85.04.03.0-3.46.62.4-0.4-0.84.94.08.137.0%
20202.1-4.3-6.86.914.311.411.321.71.8-3.230.7-3.0109.7%
202113.7-5.9-6.57.4-0.68.615.23.6-3.14.7-0.0-9.926.3%
2022-13.70.82.0-11.1-3.1-1.30.6-2.2-0.10.00.00.0-25.7%
20230.00.00.0-0.65.06.24.20.6-7.6-1.79.59.025.9%
20246.510.33.6-4.49.97.0-7.71.26.23.64.6-4.440.6%
20251.7-9.1-5.38.17.15.7-0.6-0.516.98.2-2.53.435.2%
20268.91.8-5.718.525.417.8-25.73.510.2-20.5-10.310.5%

Strategy overview

Why it rotates into strength

Stocks that are already leading tend to keep leading for months at a time, and NASDAQ 100 names trend more cleanly than the broad market when risk appetite is high. The strategy ranks the index each month and holds the strongest, then rotates out of a stock once it falls out of the ranking. It stays with what is working rather than trying to call tops and bottoms.

How the ranking works

A basic momentum rotation ranks stocks by a single return period, which often rotates into names that have just run up and are ready to stall. This strategy scores momentum across two timeframes at once, so it selects stocks that have shown steady strength rather than a single sharp move. Each top-ranked stock also has to pass an entry filter before it is bought, and any that fail are skipped for that month regardless of rank. The backtest runs from 2000 on survivorship-free Norgate data with Interactive Brokers commissions and per-side slippage included.

How it fits your trading

This is a growth-oriented strategy that leans into strong trends, so it does its best work in sustained bull phases. Two controls keep that in check. The entry filter holds it back when the setups are weak, and position size scales down automatically when the index itself turns shaky. It runs in a few minutes once a month, and it pairs well with a mean-reversion or defensive strategy that behaves differently in a downturn.

Specification

StyleDual-momentumUniverseNasdaq 100 current & past stocksTimeframeDailySideLongAverage hold69 trading daysTrade frequency2.3 per monthEntry executionMarket on openExit executionMarket on openDataNorgate Data (US Stocks Platinum) SoftwareRealTest or PythonCommission$0.005 / shareSlippage10 bps per sideSPY benchmarkNo fees applied (favors SPY)

What you get

RealTest by MHP Trading logo
RealTest strategy code (.rts)
Reproduce the backtest above and check every trade. Setup video →
Trading strategy rules plain text document
Plain text rules
Rebuild the strategy in any software you use.
Python programming logo for quantitative trading backtest
Python backtest code (.py)
Open it in Python and run the backtest.

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 Momentum Rotation?
A RealTest momentum rotation strategy that holds the strongest NASDAQ 100 stocks and re-ranks once a month. It scores momentum across two timeframes rather than one, so it leans toward stocks with steady strength rather than names that have just spiked. An entry filter and automatic position scaling manage the risk. Tested on survivorship-free Norgate data with commissions modeled, and trading live since February 2026.
Why should this edge keep working?
Stocks that are already leading tend to keep leading for months at a time, which is the momentum effect. This strategy ranks NASDAQ 100 stocks each month and holds the strongest, rotating out once a stock falls out of the ranking. It scores momentum across two timeframes so it leans toward steady strength rather than a single sharp move, and an entry filter skips weak setups. Momentum is one of the most studied and persistent effects across markets.
Do I need RealTest to run this strategy, or can I use Python?
No. The .py runs in Python 3 without RealTest. The .rts runs in RealTest by MHP Trading, including the free version. The plain text rules work in any software.
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 slippage of 10 bps per side, so the equity curve is after costs.
When did live trading start?
Live trading started in February 2026. The equity curve shows the backtest from 2000 and real performance from that point on.
What's included in the download?
RealTest strategy code (.rts). Plain text rules. Python backtest code (.py).
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 (both RealTest and Python) with a perpetual single-user license. You can freely adjust parameters, rewrite position sizing, combine rules with other strategies, or embed the logic into your own custom quant pipeline.
What market data do I need?
Norgate Data (US Stocks Platinum), the data behind this backtest. The .rts and the .py read it directly.
Can I automate execution?
Yes. In RealTest, you can send orders to Interactive Brokers through OrderClerk. With the Python code, you can connect to Interactive Brokers or Alpaca directly.
Can I ask questions about the code or the strategy?
Yes. Email info@setupalpha.com and you will get an answer, before or after you buy.

Changelog

2026-02-02Rules locked. Live trading starts.

No rule changes since.

Portfolio growth since 2000
18,255.6%
SPY same period: 483.0%
$990one-time
Instant download
MetricStrategySPY
Sharpe0.840.47
ROR21.5%–
Sortino0.750.45
MAR0.43–
Net profit$18.3M$483k
Expectancy9.75%–
Max exposure106.23%100%
Worst year-25.7%-33.2%

Download the complete strategy now

Active Script - C:\REALTEST\Strategies\nasdaq_momentum_rotation.rts
RealTest NASDAQ Momentum Rotation full RealTest script
Python programming logo for quantitative trading backtest
Python backtest code (.py)
Open it in Python and run the backtest.
RealTest NASDAQ Momentum Rotation
$990one-time
Instant download