Playbooks

Weekly Trend Rotation Across 12 US Equity Perpetuals

Published

Large US stocks rarely trend together. In any stretch of a few months, a handful of names lead while the rest drift sideways or fall. This strategy tries to hold only the leaders. Once a week it ranks twelve stock and sector perpetuals by trend strength, buys the three strongest names that are in a confirmed uptrend, and keeps each one until a trailing stop, a trend break or a drop out of the top three takes it out.

The universe is ten single stocks — NVDA, TSLA, AAPL, MSFT, GOOGL, AMZN, META, AVGO, PLTR and LLY — plus two sector ETFs, SMH (semiconductors) and XLE (energy). All are traded as perpetuals on daily bars, long only. The backtest runs from June 2024 to July 2026.

How it works

1. Measure the trend

For each name the strategy tracks a 20-day and a 60-day exponential moving average (EMA) of the close. A name is eligible only when two conditions hold: the fast EMA is above the slow EMA, and the latest close is above the slow EMA. Eligible names are then scored by the gap between the two averages:

scorei=EMA20(i)EMA60(i)−1\text{score}_i = \frac{\text{EMA}_{20}(i)}{\text{EMA}_{60}(i)} - 1

A score of 0.05 means the fast average sits 5% above the slow one. The gap is large only when price has risen for weeks (lifting the slow average) and recently faster still (pulling the fast average away). Because the score is a ratio, it compares a $100 stock and a $1,000 stock on equal terms.

CloseEMA 20EMA 60Eligible: EMA20 > EMA60 and close > EMA60Not eligibleEligiblescore =EMA20/EMA60 − 1gap = trendstrength
Illustrative price path. A name can be bought only inside the shaded zone, where the 20-day EMA is above the 60-day EMA and the close is above the 60-day EMA. The gap between the two averages is the ranking score.

2. Rotate into the top three, once a week

Every fifth daily bar is a rebalance day. The strategy sorts the eligible names by score and targets the top three. Any holding outside that list is sold. Each new name is bought with an equal slice of free buying power: one third of it, scaled to 90%, divided by the number of names selected. Names that stay in the top three are not resized, so a winner keeps running at the size it was bought. If fewer than three names are eligible, the strategy holds fewer; if none are, it sits in cash.

0close belowEMA60Top 3 eligible12 names, sorted by score on one rebalance daybought / kepteligible, not top 3fails trend filterEvery 5th daily barTop 3 → targetHeld, still top 3 → keep, no resizeNew name → buy an equal slice of free buying powerHeld, not in top 3 → sell
Illustrative scores. Only names that pass the trend filter can rank. The top three are held; a name with a positive score still fails if its close is below the 60-day EMA.

3. Exit on any of three signals

Between rebalance days, every position is still checked each day:

  • Trailing stop. At entry the stop is set 2.5 × ATR(14) below the entry price. Each day it moves to the higher of its previous level and the close minus 2.5 × ATR(14). It never moves down. A close below the stop sells the position.
  • Trend break. If the fast EMA drops below the slow EMA, or the close drops below the slow EMA, the position is sold that day.
  • Rank loss. On a rebalance day, a holding that is no longer in the top three is sold to make room for a stronger name.

ATR(14) is the average true range over the last 14 days: the typical daily move, including gaps. Scaling the stop by ATR places it further away for a volatile name and closer for a quiet one, so each stop sits outside that name's normal daily noise.

EntryClose < stop→ sellStop = entry − 2.5 × ATRThe stop rises with the closeand never fallsCloseTrailing stopSell if any is true1DailyClose below thetrailing stop2DailyEMA20 ≤ EMA60, orclose ≤ EMA603Rebalance dayName drops outof the top 3
Illustrative price path. The stop starts 2.5 ATR(14) below the entry and ratchets up as the close rises. Any one of the three exit rules sells the position.

Results

+265.31%

Annual return

+141.24%

2.19

Max drawdown

24.30%

From June 2024 to July 2026, a $10,000 account grew to $36,531: a total return of 265.3% and an annualized return of 141.2%. The Sharpe ratio was 2.19. The deepest drawdown was 24.3%, and the longest drawdown lasted 50 days. Annual return divided by maximum drawdown (the Calmar ratio) was 5.81.

Trade statisticValue
Closed trades78 (33 winners, 45 losers)
Win rate42.3%
Average winning trade$1,166
Average losing trade$291
Profit factor (gross profit ÷ gross loss)2.94
Profitable vs losing days292 vs 226

The strategy lost more often than it won: fewer than half of its closed trades were profitable. It still compounded strongly because the average winner was about 4.0 times the size of the average loser.

Read these numbers with costs in mind. The strategy made 159 fills over the test, and the backtest books no funding payments on the perpetuals. Live trading adds fees, slippage and funding. Stops are checked on the daily close, so a large one-day move can carry the exit well past the stop level.

Why it works

Strength tends to persist. The ranking buys what is already working. A wide gap between the 20-day and 60-day averages usually comes from weeks of steady buying, not a one-day spike, and moves built that way often continue. The second condition, close above the 60-day EMA, keeps the strategy out of names whose averages still look good but whose price has already rolled over.

Losers are cut early, winners are not capped. There is no profit target. A position leaves only when its trend weakens. Losing trades end quickly — at a trend break or a stop 2.5 ATR away — while a winning trade can stay in the top three for many weeks. That shapes the payoff: 33 winners averaged $1,166, and 45 losers averaged $291. With wins about 4.0 times larger than losses, the strategy breaks even at a win rate near 20%. It reached 42.3%.

33 winning tradesaverage $1,166total $38,494Average win ≈ 4.0× average lossBreak-even win rate ≈ 20%Actual win rate 42.3%45 losing trades, average $291, total $13,098Width = number of closed trades. Height = average result. Area = total profit or loss.
Drawn to scale from the backtest's 78 closed trades. The green block is 2.94 times the area of the red block.

Concentration with a way out. Holding three names keeps capital in the strongest trends instead of spreading it across twelve. The trend filter lets the strategy hold fewer than three, or nothing, when most names are falling. The two ETFs widen the choice: when single-stock leadership fades, a sector ETF can still rank near the top.

A weekly cadence limits churn. Ranking every day would swap between names with nearly equal scores and pay costs each time. A five-bar cycle gives each trend room to work, while the daily exits still protect capital between rebalances.

The limits are just as clear. All twelve names are US equities, and most are large tech stocks, so a broad sell-off can hit all three holdings at once; the 24.3% drawdown reflects that. A trend strategy also gives back part of every move before its stop or filter fires.

Ideas to test next

Size each position by its volatility

Every new position currently gets the same dollar amount, so a volatile name carries more risk than a quiet one. Sizing each position so that a stop-out costs the same share of equity would give the three holdings equal risk and may reduce the drawdown.

Add a market breadth filter

When only one or two of the twelve names pass the trend filter, the broad market is usually weak and the remaining trends are fragile. Moving to cash when fewer than four names are eligible may avoid late entries near turning points.

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