Playbooks

Tech Stock Momentum Rotation with Trend Filter and Volatility Brakes

Published

This is a long-only rotation across 17 large US technology and growth stocks plus a semiconductor ETF (SMH), all traded as perpetuals on daily bars. It buys only stocks that are in an uptrend, holds the six strongest, sizes them so each carries similar risk, and cuts exposure when volatility jumps. From June 2024 to August 2026 it turned $10,000 into $20,979.77 without leverage.

How the strategy works

The universe is AAPL, MSFT, GOOGL, AMZN, META, NVDA, TSLA, AVGO, AMD, ORCL, NOW, PLTR, COST, NFLX, QCOM, MU, INTC and SMH. At every daily close the strategy runs the same four steps.

Universe18 US stock andETF perpetualsFilterclose > 50-day SMA63-day return > 0Rankby 63-day return,keep the top 6Sizeinverse 20-day vol,× risk scaleRe-run at every daily close. Names that drop out are sold; weights are reset to target.
The daily decision pipeline. Every step uses only closing prices up to that day.
  1. Trend filter. A stock is eligible only if its close is above its 50-day simple moving average.
  2. Momentum filter. Its 63-day return (about one quarter of trading days) must be positive.
  3. Ranking. Eligible stocks are ranked by 63-day return, and the top 6 are kept.
  4. Sizing. Each kept stock gets a weight proportional to the inverse of its 20-day volatility of daily returns. Weights are capped at 30% and then rescaled, and the whole book is multiplied by a risk scale.
Mi=Pi,tPi,t−63−1,eligible if Pi,t>SMA50(Pi) and Mi>0M_i = \frac{P_{i,t}}{P_{i,t-63}} - 1, \qquad \text{eligible if } P_{i,t} \gt \text{SMA}_{50}(P_i) \text{ and } M_i \gt 0
below SMA:not eligible63-day lookback: momentum = today / 63 days ago − 1price50-day SMAtoday:eligible
Illustrative price path, not market data. A stock must trade above its 50-day average and be up over the last 63 days. Stocks that fail either test leave the book at that close.

Sizing: equal risk, not equal dollars

Inverse-volatility weights give calm stocks more capital and volatile stocks less, so a quiet mega-cap and a fast-moving chip name add roughly the same daily swing to the book.

wi=s⋅min⁡(1/σi∑j1/σj, 0.30)∑kmin⁡(1/σk∑j1/σj, 0.30)w_i = s \cdot \frac{\min\left(\frac{1/\sigma_i}{\sum_j 1/\sigma_j},\ 0.30\right)}{\sum_k \min\left(\frac{1/\sigma_k}{\sum_j 1/\sigma_j},\ 0.30\right)}

Here σ is the 20-day standard deviation of daily returns and s is the risk scale. Because weights are rescaled after the cap, the 30% cap reduces concentration but is not a hard limit when only a few names qualify.

Two volatility brakes

The risk scale starts at 1. For every stock with enough history, the strategy divides its 20-day volatility by its 100-day volatility and averages that ratio across the universe. If the average is above 1.3, short-term volatility is running well above normal and the scale is halved. If fewer than 3 stocks pass the filters, the scale is halved again. If none pass, the strategy holds cash.

gross exposure, % of equityCalm market, 3+ names qualify100%Vol ratio above 1.3, 3+ qualify50%Calm market, only 1–2 qualify50%Vol ratio above 1.3 and 1–2 qualify25%No name qualifiescash
Gross exposure in each state. The two brakes multiply, so exposure moves in steps of 100%, 50%, 25% and 0%.

Backtest results

The test runs on daily bars from 2024-06-03 to 2026-08-20 with 1x leverage and $10,000 starting capital.

+109.80%

Annual return

+62.65%

1.48

Max drawdown

27.87%

  • Return: 109.8% in total, ending at $20,979.77.
  • Risk: Sharpe ratio 1.48, maximum drawdown 27.9%. The longest drawdown lasted 118 days.
  • Trading: 2,587 trades, 74.0% of them profitable, and a profit factor (gross profit divided by gross loss) of 1.48.
  • Days: 300 up days against 238 down days.
  • Costs: turnover averaged 30.7% of equity per day, which adds up to about 171 times equity traded over the test. Funding payments are not part of the result. Real fees, slippage and funding would reduce the return.

The volatility brakes reduce exposure, but they do not remove drawdowns. A 27.9% fall and 118 days to get back to the previous high are what a live trader would have had to sit through. Much of that risk comes from correlation. When large-cap tech sells off together, several holdings break their trend in the same week, and the book is sold down at once.

Why it works

Leaders tend to keep leading. Over horizons of a few months, stocks with strong earnings revisions or strong flows into a theme often keep outperforming. The 63-day ranking puts capital behind that persistence, and the daily re-rank moves it to new leaders when the theme rotates.

The trend filter limits the damage when a leader breaks. A stock that falls below its 50-day average leaves the book at the next close, even if its quarterly return is still high. This tends to cut a reversal short instead of riding it all the way down.

Volatility clusters. Calm periods tend to be followed by calm periods, and turbulent ones by more turbulence. Cutting exposure when 20-day volatility runs far above 100-day volatility reduces size in the weeks when losses are largest. Inverse-volatility weights do the same name by name.

Win rate vs. break-even win ratebreak-even 65.8%actual 74.0%0%100%2,587 trades; profit factor 1.48Average winning vs. losing tradeavg win$31.91avg loss$61.49a loss is 1.93× the size of a win
Trade outcomes from the backtest. The average loss is larger than the average win, but the win rate is well above the break-even level that those sizes require.

The trade profile follows from the design. Daily rebalancing trims positions that have run up, which books many small gains. Losses come less often but are larger, when a name breaks its trend and is sold in full. The strategy makes money because the win rate of 74.0% is clearly above the 65.8% needed to break even.

Where it struggles. Sideways markets are the hard case. A stock that crosses back and forth over its 50-day average is bought and sold again and again, and each round trip costs a little. Sharp V-shaped rebounds are the other one. After a sell-off, a stock must close above its average and show a positive 63-day return before it comes back into the book, so the strategy re-enters only after part of the rebound has already happened.

Limits to keep in mind. The universe is a hand-picked list of today's large growth names, and most of them are tech and semiconductors. The names move together, so six holdings give less diversification than the count suggests. The test covers a little over two years. A universe chosen with hindsight and a short sample both tend to make results look better than they will be live.

Ideas to test next

1. Rebalance weekly to cut turnover

A 30.7% daily turnover means costs matter. Most daily weight changes are small, so rebalancing once a week may keep the edge while trading far less.

2. Add a sector trend switch

Most of the universe moves with the semiconductor ETF. Holding cash when SMH itself is in a downtrend may cut the deepest drawdowns, at the cost of missing some early rebounds.

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