Playbooks

Tech Momentum Rotation: Top 5 of 12 Stock Perps, +220% Since 2022

Published

An AlphaPilot user built this rotation on twelve tech stock perpetuals: NVDA, AMD, MSFT, GOOGL, META, TSLA, PLTR, AMZN, ORCL, MU, TSM and AVGO. The rules fit in one sentence. Every Monday, buy the five strongest stocks that are in a clean uptrend. During the week, drop any stock whose uptrend breaks. The test ran on daily bars from January 2022 to October 2026, with $10,000 of starting capital, long only and no leverage.

How it works

Each stock must pass a trend filter before the strategy will consider it. All three conditions must hold:

  • The close is above the 50-day moving average.
  • The 50-day average is above the 200-day average.
  • The 60-day return is positive.
Pt>SMA50>SMA200andR60=PtPt−60−1>0P_t > \mathrm{SMA}_{50} > \mathrm{SMA}_{200} \quad\text{and}\quad R_{60} = \frac{P_t}{P_{t-60}} - 1 > 0

The strategy ranks the stocks that pass by their 60-day return and buys the top five. Each one gets 20% of capital. If fewer than five stocks pass, the empty slots stay in cash.

1 · Universe 12 tech stock perpetuals NVDA, AVGO, PLTR, MU… 2 · Trend filter Close > SMA50 SMA50 > SMA200 60-day return > 0 3 · Rank By 60-day return, keep the top 5 4 · Hold 20% in each Empty slots = cash
The full selection pipeline. It runs in full only on Mondays.

The weekly rhythm keeps turnover in check. On Monday the strategy rebalances to the new top five. From Tuesday to Friday it only sells: if a holding fails the trend filter, the strategy sells it the same day. It buys nothing new until the next Monday.

Mon Rebalance Tue Exits only Wed Exits only Thu Exits only Fri Exits only
New positions open only on Mondays. A broken trend is cut on any day.
Eligible Closes below SMA50 → sold that day Price 50-day avg 200-day avg
A stylized example, not real data. A stock qualifies only while its price, short average and long average stack in that order.

Backtest results

+220.38%

Annual return

+27.36%

1.10

Max drawdown

23.26%

  • +220.4% total return. $10,000 grew to about $32,000 in under five years.
  • 27.4% annual return with a 1.10 Sharpe ratio and a 23.3% maximum drawdown.
  • Average long exposure was 58%. On a typical day, about two of every five dollars sat in cash.
  • 601 trades. Fees cost 4.5% of starting capital over the whole test.
  • The benchmark returned 310% over the same window. The strategy earned less in total, with far less capital at work.
−13.3% +38.4% +59.0% +32.6% +26.7% 2022 2023 2024 2025 2026*
Calendar-year returns, compounded from monthly results. *2026 runs to October 23.
JFMAMJJASOND 20222023202420252026 Gain Loss Flat, in cash
Monthly returns. Darker cells are bigger moves. 31 months were up, 20 were down, and 7 were flat in cash. The best month was May 2026 (+26.9%). The worst was August 2023 (−10.3%).

Why it works

1. Leaders tend to keep leading

Over these years a few tech names produced most of the sector's gains, and their runs lasted months, not days. Ranking by 60-day return puts money into whichever stocks are running now. Rebalancing every week lets the portfolio follow leadership as it rotates from one name to the next. November 2024 (+23.8%) and April–May 2026 (+18.8% and +26.9%) show what happens when the top five all run together.

2. The trend filter turns itself off in bear markets

The filter works on each stock, but in practice it decides how much of the portfolio is invested. Each stock that passes fills one 20% slot. When the whole sector rolls over, stocks fail the filter one by one, and the portfolio drifts into cash without any separate market-timing rule.

Invested=20%×min⁡(number of stocks passing, 5)\text{Invested} = 20\% \times \min(\text{number of stocks passing},\ 5)
0% 20% 40% 60% 80% 100% 012345+ Stocks passing the trend filter
Exposure scales with how many stocks are trending. Over the full test the average was 58%.

2022 shows the effect. The strategy lost 13.3% from January to April while its holdings broke down one at a time. From May to November it held nothing and lost nothing, while tech stocks kept falling. It started buying again only after trends had rebuilt, in time for the 2023 rally.

3. The cost: whipsaws in choppy markets

Trend rules lose money when trends start and stop without follow-through. From August to October 2023 the strategy bought strength, got stopped out, and bought again. Those three months compounded to about −23%, close to the 23.3% maximum drawdown. July to October 2026 was a similar stretch at about −22%. The same caution that protected the strategy in 2022 also kept it partly in cash during strong years. That is the main reason it trailed the 310% benchmark.

Ideas to improve it

Rank by risk-adjusted momentum

Ranking by raw 60-day return favors the most volatile names, and those tend to cause the sharpest pullbacks. Ranking by return per unit of volatility, and giving calmer stocks bigger weights, could smooth the drawdowns without changing the core idea.

Add an exit buffer to cut whipsaws

Most of the damage in 2023 and 2026 came from selling on small dips below the 50-day average and then buying back. Keep the strict rule for new entries, but let existing holdings stay until the price closes clearly below the average. This should reduce false exits and fees.

The whole strategy is four moving averages and a sort, and it held up through a bear market and two rallies. Pick your own universe, choose your own trend rule, and ask AlphaPilot to backtest it.

Built by an AlphaPilot user. Historical backtest results do not predict future returns. Not investment advice.