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.
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.
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.
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.
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.
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.