An AlphaPilot user trained a machine-learning model to score large US stocks. The model is only half the strategy. The other half is a set of simple rules for using its scores: buy the top 20, sell late, and avoid the wildest stocks. From January 2024 to November 2026 the strategy turned $10,000 into about $22,960 in this backtest. The benchmark returned 33.8% over the same period.
How the strategy works
Each trading day the strategy looks at about 500 of the largest US stocks and follows five steps.
The score. A trained model gives each stock a score every day. The strategy sorts all stocks by score, so rank 1 is the model's favorite. Only the order matters, not the size of the score.
Buy high, sell low in rank. A new stock must reach the top 20 to be bought. A stock already in the portfolio stays until it drops past rank 60. This gap between the buy line and the sell line is called a rank buffer.
A volatility filter for new buys. For each stock the strategy measures how much its daily returns swung over the last 60 days. Then it ranks that swing against all other stocks, from 0 (calmest) to 1 (wildest):
If v is above 0.9, the stock is in the most volatile 10% of the universe. It is skipped as a new buy, however high its score. A stock that is already held is not sold for being volatile.
Equal weights. Each stock gets the same share of the portfolio:
With 20 stocks, each gets about 4.95%, and 1% stays in cash. The strategy trades only when the list of stocks changes. If the list is the same as yesterday, it does nothing.
Backtest results
Daily bars, US top 500 stocks, 1 January 2024 to 27 November 2026, $10,000 starting capital. Trading costs are included.
+129.58%
Annual return
+33.10%
1.41
Max drawdown
21.00%
- Annual return: 33.1%, with a Sharpe ratio of 1.41.
- Deepest drop: 21% from a peak.
- Year by year: 2024 +29.2%, 2025 +37.3%, 2026 (to 27 Nov) +29.4%.
- Trading: 5,122 trades. Costs took about 3.5% of capital over the whole period. Average exposure was 99% long, with no shorts.
The losses came in short clusters: April 2024, December 2024, February–March 2025 and January–March 2026. Each time, the strategy recovered within a few months. It never stays out of the market, so it takes the full hit when stocks fall together.
Why it works
1. It acts only on the model's strongest calls. Twenty stocks out of about 500 is the top 4%. If the model sorts stocks even slightly better than chance, most of that edge sits at the top of the list. Holding the top 20 at equal weight collects it without betting heavily on any single stock.
2. The rank buffer stops noise from becoming costs. Model scores move a little every day. Under a strict top-20 rule, a stock moving between rank 19 and rank 22 would be bought and sold again and again, and each trade costs money. The 20/60 buffer ignores those small moves. A stock is sold only when the model has clearly changed its mind about it. Even with daily checks, total trading costs were about 3.5% over almost three years. That is small next to the 129.6% gain.
3. The volatility filter removes the riskiest bets. Each position is about 5% of the portfolio, so one stock that collapses can cost a full point or more. The most volatile stocks are the ones most likely to make big surprise moves, in either direction. Many studies also find they have weaker returns for their risk. Skipping the wildest 10% gives up a few lottery tickets and removes much of the single-stock blow-up risk.
4. It stays invested. With about 99% of capital in stocks at all times, the strategy keeps the market's own return and adds the model's stock picks on top. This explains why the strategy did well over the period. It also explains why the deepest drop was 21%.
What to keep in mind. This test covers about three years, and most of that time stock prices were rising. A long-only portfolio would struggle more in a long bear market. Also check whether the model was trained on data from the same years as the test. If it was, the backtest will look better than live trading would.
Ideas to improve it
1. Step back when the whole market is weak. The strategy's big losses came when many stocks fell together. A simple breadth check could reduce exposure at those times: measure how many stocks are above their 200-day average. When fewer than 40% are, the strategy halves every position. This could make the 21% drawdown smaller, at the cost of some upside in fast rebounds.
2. Size positions by calm, not equally. Equal weights give a jumpy stock the same money as a steady one. With inverse-volatility weights, each stock's weight is set by 1 divided by its 60-day volatility, so calm stocks get more capital and jumpy stocks less. Each stock then adds a more even share of the portfolio's risk.