Playbooks

Chip Momentum Long-Short Backtest: +768% on SNDK, MU, SMH

Published

This strategy trades three closely related markets: SanDisk (SNDK), Micron (MU) and the semiconductor ETF SMH. It uses perpetual futures and daily bars. It follows one simple idea: buy what is clearly rising, short what is clearly falling, and stay in a trend until the trend breaks. From February 2025 to October 2026, $10,000 grew to about $86,800 in the backtest.

How it works

Each day the strategy runs the same four steps for each of the three markets.

1 Measure Momentum, moving averages, ATR, RSI, volume 2 Filter New entries: 7 checks. Open trades: only 3. 3 Rank Strongest 2 go long, weakest 1 goes short 4 Size 40% per long, 20% short. Trade only on change.
The daily loop. With two longs and one short, the strategy uses at most 100% of capital, with no leverage.

The momentum score

Each market gets a momentum score. The score is the average of the 20-day return (about one month) and the 60-day return (about three months):

mom=12(CtCt−20−1)+12(CtCt−60−1)\text{mom} = \tfrac{1}{2}\left(\frac{C_t}{C_{t-20}} - 1\right) + \tfrac{1}{2}\left(\frac{C_t}{C_{t-60}} - 1\right)

Mixing the two time spans means a market needs both a recent rise and a longer rise to score high. The score also sets the ranking: the two highest scores get the longs, and the most negative score gets the short.

Hard to get in, easy to stay in

This is the core of the design. A new long must pass seven checks. A long that is already open only needs to pass three.

CheckEnter longKeep long
Momentum score above 0✓✓
60-day return above 0✓–
Close above 50-day average✓–
Close above 20-day average✓✓
Close above ATR trailing stop✓✓
RSI(14) below 85 (not overheated)✓–
5-day volume over 70% of 20-day volume✓–

Shorts use the mirror image of these rules. A new short needs negative momentum, a negative 60-day return, a close below both averages, a close below the short stop, and RSI above 30. There is no volume check for shorts. To keep a short open, the strategy only needs negative momentum, a close below the 20-day average and a close below the stop.

A trailing stop that adapts to volatility

The stop follows the highest close of the last 20 days and stays three times the 14-day Average True Range (ATR) below it:

stay long while Ct>max⁡20(C)−3⋅ATR14\text{stay long while } C_t > \max_{20}(C) - 3 \cdot \text{ATR}_{14}
close 20-day highest close trailing stop 3×ATR exit
Illustration, not real data. The stop only moves up during a rise. The long closes once the price falls through it.

Two more details matter. First, the strategy trades only when the line-up changes, meaning a market enters, exits or flips sides. While the line-up holds, it does not trim winners back to 40%, so strong positions can grow. Second, when no market passes the checks, the strategy holds cash.

Backtest results

The test ran on xyz perpetuals for SNDK, MU and SMH. It used daily bars from 13 February 2025 to 19 October 2026, with $10,000 starting capital, 1× leverage and a 0.03% trading cost per trade.

+767.64%

Annual return

+261.25%

2.64

Max drawdown

29.93%

  • Total return: 767.6% (about 261% a year)
  • Sharpe ratio: 2.64
  • Maximum drawdown: 29.9%
  • Trades: 157. Fees cost about 5.3% of capital. Funding was zero in this test.
  • Average exposure: 54% long and only 2.9% short. The short side rarely switched on.
  • Benchmark: 948.8%. That is higher than the strategy's return.

The benchmark beat the strategy, and that matters. The three markets rose very strongly in this period. The strategy kept about 81% of the benchmark's return while it held, on average, only about half its capital in the market. It made its money by catching the big moves, not by staying fully invested.

80% 60% 40% 20% 0% −20% +57% +74% +58% −17% Feb – Dec 2025 Jan – Oct 2026
Monthly returns. 13 of 21 months were positive. 2025 (from February) returned +188%, and 2026 up to 19 October returned +202%.

The monthly chart shows the shape of a classic trend strategy. Most months are small, and a few are very large. Four months drove most of the result.

Sep 2025, Oct 2025, Jan 2026, May 2026 6.49× The other 17 months 1.34×
Growth of capital in each group of months. 6.49 × 1.34 ≈ 8.68, which is the full 767.6% return.

Why it works

1. Strong trends tend to continue. Memory and chip stocks often move in long cycles of demand and supply. When a cycle turns up, prices can rise for months. Here the benchmark rose 949%. A score built from one-month and three-month returns sees that kind of trend early and stays with it.

2. Strict entries and loose exits. Seven checks keep the strategy out of weak or tired rallies: two time spans, two moving averages, an RSI limit and volume confirmation. After entry, only three checks apply. A normal pullback inside a trend does not force an exit. This is how it held through months like September and October 2025 and January 2026.

3. The stop scales with volatility. SanDisk can swing far more than SMH in a day. A fixed 10% stop would be too tight for one and too loose for the other. Three ATRs gives each market room in line with its own normal noise.

4. Capital follows strength. With three markets and two long slots, the weakest market is left out. Because the strategy trades only when the line-up changes, the winning positions are not cut back as they grow.

5. It waits. From February to May 2025 there was no clear trend, and the strategy lost only about 4.3% over those four months. Holding cash costs little and keeps capital ready for the next big move.

Where it struggles

Trend-following reacts late when a trend ends. From July to October 2026 the strategy lost about 27% from its month-end peak, and its largest drawdown, 29.9%, came in this stretch. With a three-ATR stop on very volatile markets, it can give back a lot before the exit triggers. There are two more limits. All three markets belong to one sector, so this is really one bet. And the test covers one very strong cycle, so a flat or falling market would test it very differently.

Ideas to test next

1. Drop the idle short side and invest fully in the trend

Shorts averaged only 2.9% exposure, and longs averaged 54%. A long-only version with two 50% slots puts more capital into the trends that paid off. This may close the gap with the benchmark. The cost is that it has no hedge when the sector falls.

2. Use a tighter trailing stop to keep more of the gains

The losses from July to October 2026 came from exiting late. Moving the stop from three ATRs to two ATRs below the 20-day high would close fading trends sooner. The test will show whether this saves more in drawdowns than it loses through extra exits in the big trends.

The strategy has only a handful of parts: a momentum score, an entry checklist, a looser hold checklist and a volatility stop. You can apply the same design to any group of related markets that tends to trend together. Choose a group, set your checks, and run your own backtest.

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