Own the five strongest AI stocks, but only while their uptrends hold. This AlphaPilot user tested that idea on twelve stocks tied to the AI build-out. The rules are short. Every Monday the strategy ranks the stocks that are trending up and buys the leaders. Every other day it sells anything whose trend breaks. If nothing qualifies, it holds cash.
How it works
The universe is twelve stock perpetuals, traded long-only with no leverage on daily bars. Each stock is scored with three numbers, all computed from daily closes:
- 60-day momentum: how far the price has moved over the last 60 bars.
- 50-day average: the medium-term trend.
- 200-day average: the long-term trend.
A stock is eligible only when all three trend measures line up:
Each position gets one fifth of the account, so the portfolio is fully invested only when at least five stocks pass the filter. In a weak market only a few stocks pass, or none, and the rest of the money stays in cash. The strategy never sizes up its remaining holdings to fill the gap.
Backtest results
The test ran from January 1, 2022 to October 23, 2026 on daily bars. It started with $10,000 and charged 0.03% friction per trade.
+220.38%
Annual return
+27.36%
1.10
Max drawdown
23.26%
| Ending value | ≈ $32,000 (+220.4%) |
| Benchmark return | +310.1% |
| Average exposure | 58% long, never short |
| Trades | 601 |
| Fees paid | 4.5% of starting capital |
| Months up / down / flat | 31 / 20 / 7 |
| Best month | +26.9% (May 2026) |
| Worst month | −10.3% (Aug 2023) |
What the numbers say. The strategy compounded at 27.4% a year with a Sharpe ratio of 1.10. Its worst peak-to-trough loss was 23.3%. It did not beat the benchmark, which returned 310.1% against 220.4%. It also had only 58% of its capital at work on average. Most of the gap comes from the time it spent partly or fully in cash.
That cash came from the trend filter, and it paid off in 2022. That year the Nasdaq-100 fell by about a third. The strategy lost 13.3%, almost all of it from January to April. From May through November it held nothing, because no stock passed the filter. It came back in when trends rebuilt in 2023.
The weak spots show on the heatmap. From August to October 2023, the account fell about 23% from peak to trough at month-end. From July to October 2026 it fell about 22%, and that drawdown was still open when the test ended.
Why it works
1. Leaders tend to keep leading. Prices often take weeks or months to absorb good news, such as earnings upgrades, guidance raises and capex announcements. Investors under-react at first, then pile in. Ranking by 60-day return catches stocks in the middle of that process. In a universe built around one theme, AI spending, the same forces push several names at once. That gives the strategy plenty of strong trends to rotate through.
2. The filter decides when to play, not just what to buy. A stock must sit above two rising averages and also have positive momentum. In a broad selloff, few stocks pass that test, so the portfolio shrinks on its own. Nobody has to call the top. The 58% average exposure is that filter at work. It gives up some upside in strong markets and keeps the account out of the worst of the bad ones.
3. Losers get cut fast and winners get to run. A holding is checked every day and sold as soon as its trend breaks. A winner is never sold for being "up too much". Over the test, that produced a lopsided payoff. The average up month gained +7.5% and the average down month lost −4.9%. Seven months gained more than 10%. No month lost more than 10.3%.
Where it struggles. Moving averages lag. When a crowded trade reverses hard, the strategy gives back gains before the 50-day line catches up. It may then rotate into another stock that falls with the rest of the group. Both big drawdowns, in late 2023 and late 2026, followed exactly this pattern. All twelve stocks ride the same theme, so they tend to fall together.
The universe also has a built-in bias. These twelve names were picked by someone who knows how the AI trade has gone, so the results flatter the idea. A fair test would run the same rules on a broader or differently themed list.
Ideas to push it further
1. Rank by risk-adjusted momentum and size by volatility
Right now the most volatile stock gets the same 20% as the steadiest one. Both drawdowns came when high-flyers reversed together. Ranking by return per unit of volatility, and giving calmer trends more weight, could cut those late-cycle losses. Check whether the max drawdown drops below 23.3% while the Sharpe ratio stays above 1.10.
2. Put idle cash to work when only a few stocks qualify
The strategy was only 58% invested on average, and it trailed the benchmark by about 90 percentage points. When three or four stocks pass the filter, 20–40% of the account sits idle even in a clear uptrend. Letting each holding grow to a third of the account, but no more, keeps a floor on diversification and puts more money in the trend. Check whether total return rises faster than the drawdown does.
The basic design is a trend filter, a momentum rank and a fixed number of slots, and it works on any universe. You could try it on another theme, add a sector, or change the 60-day lookback. AlphaPilot can backtest your version in minutes.