Playbooks

Breakout Long-Short Crypto Strategy: +79% While the Market Fell 46%

Published

This strategy asks one question every Monday: which coins are trading near the top of their recent range, and which are stuck near the bottom? It buys the leaders, shorts the laggards and keeps the two sides the same size. From April 2025 to October 2026 the benchmark fell 46.2%. Over the same period this strategy returned +79.2%, with a Sharpe ratio of 1.65.

The code is about 30 lines long. It uses two factors and one ranking.

How it works

The strategy trades AlphaPilot's head universe of liquid perpetual futures on 4-hour bars. Each Monday at 00:00 it takes four steps.

  1. Score every coin by its breakout level. The score shows where today's close sits inside the coin's range over the last 90 bars. Ninety 4-hour bars are 15 days. A score of 1 means the coin closed at its 15-day high. A score of 0 means it closed at its 15-day low.
  2. Rank the coins. The coin with the highest score comes first. The strategy only trades when at least 10 coins have valid data.
  3. Pick the two ends of the ranking. The strategy buys the top 20% and shorts the bottom 20%. It ignores the middle 60%.
  4. Size each position by inverse volatility. The long side gets 50% of equity and the short side gets 50%. Inside each side, calmer coins get more weight and wilder coins get less.

This is the breakout score:

breakout=close−min⁡90(close)max⁡90(close)−min⁡90(close)\text{breakout} = \frac{\text{close} - \min_{90}(\text{close})}{\max_{90}(\text{close}) - \min_{90}(\text{close})}
90-bar high 90-bar low latest close 1 0 0.83 ← 90 bars of 4h = 15 days →
The breakout score places the latest close inside its 15-day range. This coin scores 0.83, so it is near the top of its range.

Dividing by the range has a purpose. It puts every coin on the same 0-to-1 scale. A quiet large-cap that edges up to its high gets the same score as a volatile small-cap that does the same thing, so the strategy can compare them directly.

breakout score Coin 1 Coin 2 Coin 3 Coin 4 Coin 5 Coin 6 Coin 7 Coin 8 Coin 9 Coin 10 LONG top 20% no position SHORT bottom 20% Ranked every Monday at 00:00, held for one week
With 10 coins the strategy holds 2 longs and 2 shorts. A larger universe gives proportionally more positions on each side.

Next the strategy sizes the positions. It measures each coin's volatility σ as the standard deviation of its 4-hour returns over the same 90 bars. Then it weights each coin by 1/σ within its side:

wi=± 0.5×1/σi∑j∈side1/σjw_i = \pm\, 0.5 \times \frac{1/\sigma_i}{\sum_{j \in \text{side}} 1/\sigma_j}
Long side = 50% of equity Coin 1 · σ 2% → 33% Coin 2 · σ 4% → 17% Short side = 50% of equity Coin 10 · σ 3% → 33% Coin 9 · σ 6% → 17% Illustrative volatilities. Half the volatility gets twice the weight.
Inverse-volatility sizing: a coin that moves half as much gets twice the capital, so each position adds a similar amount of risk.

The results

The backtest ran from 1 April 2025 to 31 October 2026 with $10,000 of starting capital, 1× leverage and a 0.03% friction rate on each trade.

+79.18%

Annual return

+44.44%

1.65

Max drawdown

17.25%

  • +79.2% total return and +44.4% annualized. The benchmark returned −46.2% over the same period.
  • 17.3% maximum drawdown and a Sharpe ratio of 1.65.
  • 13 of 19 months were positive.
  • 1,772 trades, about 22 per weekly rebalance.
  • Costs were real. Fees took 4.8% of capital and funding took 5.3%. Both are already included in the results.
+10% 0 −10% +15.3% −13.3% 2025 (Apr–Dec) 2026 (Jan–Oct)
Monthly returns. The first three months lost 2.9% in total. October 2025 to January 2026 then compounded to +54%.

The returns did not arrive evenly. The strategy lost money in its first quarter, then gained more than half its capital in four months. It gave back 13.3% in August 2026, its worst month. Anyone who runs a strategy like this needs the patience to sit through the flat stretches.

Why it works

1. Crypto leadership tends to persist

The edge comes from cross-sectional momentum: coins that have led their peers recently tend to keep leading for a while. Crypto suits this pattern. Capital rotates between narratives, traders chase what is already moving, and news reaches the market in waves rather than all at once. A coin at the top of its 15-day range is often in the middle of such a rotation. A coin pinned to its lows is often the one being sold to pay for it. The strategy holds each position for one week, which is a sensible horizon for a 15-day signal: long enough for the trend to play out, short enough to exit before the signal goes stale.

2. Both sides cancel the market, so only the spread is left

Average exposure long +49.4% short −48.9% Return over the test strategy +79.2% benchmark −46.2% net exposure ≈ 0
The long and short sides are almost equal, so the strategy's result depends very little on whether the market rises or falls.

On average the strategy held 49.4% long and 48.9% short, so its net market exposure was close to zero. It does not need prices to rise. It only needs the leaders to beat the laggards. While the benchmark lost almost half its value, the short side made money on the weakest coins, and the strategy as a whole kept its gains.

3. Inverse-volatility sizing keeps one coin from running the book

If every position had equal weight, the wildest small-cap would drive most of the profit and loss. Weighting by 1/σ gives each position roughly the same risk. The strategy's result then reflects the whole ranking rather than one lucky or unlucky coin.

Where it struggles

Momentum strategies lose when leadership flips suddenly. If the laggards rally and the leaders drop in the same week, both sides lose money at once. Months like August 2026 (−13.3%) fit that pattern. Costs also matter. Weekly turnover cost 4.8% in fees. Funding cost another 5.3%, plausibly because the long side holds coins near their highs, where perpetual funding tends to be most expensive.

Ideas to improve it

Idea 1: Confirm the breakout on a longer window

A 15-day breakout can be a short-lived spike. If the score also requires strength over 60 days, the long side should hold coins in steadier trends. This could reduce the whipsaw losses in choppy months.

Idea 2: Add a holding buffer to cut turnover

Each week many coins move just across the 20% cutoff and then back again. A buffer keeps a position open until the coin falls clearly out of its group. This should reduce the 1,772 trades and the 4.8% lost to fees.

Build your own

The whole strategy is one idea: rank coins by how close they are to their recent highs, then trade the two ends. You can change almost any part of it. Try a different lookback, a different universe, a different rebalance day or a new factor. Describe your version to AlphaPilot and see how it performs.

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