Playbooks

Tech Momentum Long/Short: 4 Leaders, a Regime Switch, 204% Return

Published

The idea in one line: the strategy watches ten big tech stocks. When the group trends up, it rides the four strongest. When the group stalls, it moves to cash. When the group breaks down, it places a small short on the weakest names.

An AlphaPilot user built this strategy on daily bars of ten tech perpetuals: NVDA, AAPL, MSFT, GOOGL, AMZN, META, TSLA, AMD, AVGO and PLTR. The backtest runs from January 2022 to October 2026. That period covers a full tech bear market, the AI rally and several sharp pullbacks.

How it works

Each day the strategy answers two questions. First, is the whole group trending? Second, which stocks lead and which lag?

Step 1: Read the regime

The strategy measures how far each of the ten stocks trades above or below its own 100-day moving average. It then averages those ten numbers into one value, mkt:

mkt=110∑i=110Pi,tMA100(Pi)−1\text{mkt} = \frac{1}{10}\sum_{i=1}^{10} \frac{P_{i,t}}{\text{MA}_{100}(P_i)} - 1

A positive mkt means the typical stock sits above its trend. A mkt below −3% means the group is clearly breaking down. The range between 0 and −3% is a neutral zone.

Every day: is the group trending? Avg of 10 stocks vs their 100-day MA mkt > 0 RISK-ON Rank by score Buy top 4 if 6-mo mom > 0 & above 50d MA 25% each 0 to −3% NEUTRAL Close everything Sit in cash 0% invested mkt < −3% RISK-OFF Rank by score Short bottom 3 if 6-mo mom < 0 & below 50d MA −10% each
The daily decision tree. A stock must also pass its own trend checks before the strategy trades it. If a stock fails those checks, its slot stays in cash.

Step 2: Rank the ten stocks

The strategy gives every stock a score that blends two kinds of strength:

  • 6-month momentum (60% weight). This is the price change from 125 trading days ago to 5 days ago. The strategy skips the most recent week on purpose.
  • Distance from the 60-day high (40% weight). This is today's close divided by the highest close of the last 60 days. Stocks that are breaking out score near 1.

The strategy turns each part into a percentile rank across the ten stocks before it blends them. This way, neither part can dominate the score.

score=0.6 rank ⁣(Pt−5Pt−125−1)+0.4 rank ⁣(Ptmax⁡60P)\text{score} = 0.6\,\text{rank}\!\left(\frac{P_{t-5}}{P_{t-125}} - 1\right) + 0.4\,\text{rank}\!\left(\frac{P_t}{\max_{60} P}\right)
skip 5d ↓ 60% · 6-month momentum 40% · vs 60-day high 125 days ago 60 days ago today
The long momentum window shows the established leaders. The short window catches fresh breakouts. The strategy ignores the last five days, because very recent moves often reverse.

Step 3: Trade

  • Risk-on: the strategy takes the four highest scores. It keeps a stock only if that stock has positive 6-month momentum and trades above its 50-day average. Each pick gets 25% of equity.
  • Neutral: the strategy closes everything.
  • Risk-off: the strategy takes the three lowest scores. It shorts a stock only if that stock has negative momentum and trades below its 50-day average. Each short gets −10%, so the short book is at most 30% of equity.

The strategy rebalances every day with no leverage. The backtest charges 0.03% friction per trade.

Backtest results

+203.89%

Annual return

+25.92%

1.07

Max drawdown

18.96%

−12.6% +46.9% +78.1% +28.8% +3.3% 2022 2023 2024 2025 2026*
Return by calendar year, compounded from the monthly results. *2026 covers January to October.
Starting capital$10,000
Ending value≈ $30,400
Buy-and-hold benchmark+266.2%
Positive months33 of 58 (57%)
Best monthMay 2023, +24.4%
Worst monthJan 2022, −9.4%
Average long exposure60%
Average short exposure7%
Trades1,503
Fees paid≈ 14% of starting capital

A fair reading: buy-and-hold made more money in total (+266% vs +204%). The strategy earned about three quarters of that gain while it held, on average, only 60% of its capital in stocks. Its worst peak-to-trough loss was 19%. In 2022, a hard year for big tech, it lost 12.6%. Its gains came in 2023 and 2024, when a few leaders pulled far ahead of the rest.

Why it works

1. Leaders tend to keep leading

Momentum is one of the most persistent patterns in stock returns. Investors often react slowly to good news, so winners keep winning for months. The effect was strong in this universe, because one theme, AI, drove a handful of names much further than the others. The score kept the portfolio in those names and dropped the laggards automatically.

2. Two windows see more than one

Six-month momentum alone reacts slowly. The 60-day-high part helps a newly strong stock enter the top four earlier, and it pushes a fading leader out sooner. Skipping the latest week removes noise from short-term reversals, which often follow sharp moves.

3. Absolute checks block "the best of a bad bunch"

A pure ranking always buys something. Here a top-ranked stock must also be rising over six months and trading above its 50-day average. When only two stocks qualify, the strategy holds two and keeps the rest in cash. This is one reason the average long exposure was 60%, not 100%.

Short 7% Long 60% Cash 33%
Where the capital sat on an average day. About one third was idle, which explains why the drawdown was smaller and why the total return was lower than buy-and-hold.

4. Tech stocks move as a pack, so the regime check matters

These ten stocks share investors, themes and interest-rate sensitivity. When most of them fall below trend, even the "best" stock usually falls too. The group-level mkt check catches these periods and moves the portfolio to cash.

0% −3% LONG the leaders CASH SHORT the laggards
Illustration only. A mild dip moves the strategy to cash. It shorts only after a real breakdown, when the average stock sits more than 3% below its 100-day trend.

5. The short side is small on purpose

Big tech has a strong upward drift, and short squeezes in these names can be violent. The strategy therefore shorts only in clear breakdowns, uses at most 30% of equity and requires each short to be below trend. On average it held just 7% short. The short side does not add much return. Its job is to cushion bear markets.

Where it struggles

Momentum loses money when the leaders reverse together. August to October 2023 cost −8.9%, −8.3% and −2.1%. June to August 2026 cost −8.4%, −5.5% and −1.6%. In both stretches the group stayed above trend while the top names fell, so the regime check did not fire. Costs are the other weak spot: daily rebalancing produced 1,503 trades, and fees took about 14% of the starting capital.

Ideas to improve it

1. Trade less: weekly rebalancing with a buffer

Fees are the clearest leak. This version rebalances only on Mondays. It also keeps a holding while that stock stays in the top six, instead of selling it as soon as it slips out of the top four. Most momentum signals change slowly, so the strategy may keep most of its edge with far fewer trades.

2. Size by risk, not by count

The current version gives TSLA, PLTR or AMD the same 25% as MSFT or AAPL, even though they swing far more. This version weights each pick by the inverse of its recent volatility. Each name then adds roughly equal risk, which could soften losses when a volatile leader reverses.

Make it your own

This strategy has three parts: a group-level trend switch, a blended strength score and per-stock trend checks. You can reuse that structure almost anywhere. Try it on crypto majors, energy names or a sector of your choice. You can also change the windows or the size of the neutral zone. Describe your version to AlphaPilot and see how it holds up.

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