Playbooks

Crypto Momentum Long-Short: +320% Market-Neutral Backtest

Published

The idea in one line: buy the coins that have been winning, short the coins that have been losing, and let the direction of the overall market cancel out.

An AlphaPilot user built this cross-sectional momentum strategy and tested it on crypto from January 2022 to November 2026. That stretch includes a deep bear market. The strategy's benchmark lost 92.5% over the same period, while the strategy ended up +320%. The road there was rough, and this page covers that part too.

How it works

The strategy ignores the question "will crypto go up?" It asks only one thing: which coins are stronger than the others right now?

  1. Universe. It uses the top half of AlphaPilot's coin list (the all_top50pct universe) with daily bars. A coin needs 60 days of price history before it can be ranked.
  2. Score. Each coin's score is its return over the last 60 days.
  3. Rank. The coins are sorted from weakest to strongest. The strategy goes long the top 20% and short the bottom 20%, with at least 3 coins on each side. It does nothing if fewer than 15 coins have a score.
  4. Size. Half of the capital is split equally across the longs. The other half is split equally across the shorts. With 100 ranked coins, that means 20 longs at +2.5% each and 20 shorts at −2.5% each.
  5. Hold. Every fifth day, it re-scores, re-ranks and resets the weights.
SHORT bottom 20% −50% of capital, equal parts LONG top 20% +50% of capital, equal parts middle 60%: no position 15 coins ranked by 60-day return, weakest → strongest
One rebalance with the smallest allowed universe: 15 coins, 3 long and 3 short. The bar heights are illustrative.

Here are the rules as formulas. P is the price, N is the number of ranked coins and w is each coin's weight as a share of capital:

si=Pi,tPi,t−60−1s_i = \frac{P_{i,t}}{P_{i,t-60}} - 1
k=max⁡(3, ⌊0.2 N⌋)k = \max\left(3,\ \lfloor 0.2\,N \rfloor\right)
wi={+0.5ktop k scores−0.5kbottom k scores0otherwisew_i = \begin{cases} +\dfrac{0.5}{k} & \text{top } k \text{ scores} \\[4pt] -\dfrac{0.5}{k} & \text{bottom } k \text{ scores} \\[4pt] 0 & \text{otherwise} \end{cases}

The long side and the short side are always the same size. Over the backtest, average long exposure was +49.9% of capital and average short exposure was −49.8%, so the net market bet stayed close to zero.

Backtest results

The test ran on daily data from 1 January 2022 to 30 November 2026, starting with $10,000 and charging 0.03% friction per trade.

+320.40%

Annual return

+33.93%

1.23

Max drawdown

37.04%

−26.2% +23.2% +8.1% +72.8% +147.4% 2022 2023 2024 2025 2026 (Jan–Nov)
Return by calendar year, compounded from the monthly results. Year-end equity as a multiple of starting capital: 0.74×, 0.91×, 0.98×, 1.70×, 4.20×.

The total return hides a hard start. The strategy lost money through most of 2022. At the end of January 2023, month-end equity was about 34% below the starting capital, and the deepest drawdown in the backtest was 37%. At the end of 2024, three years in, the account was still about 2% below where it began.

Almost all of the gain came in the final 23 months, when equity grew from 0.98× to 4.2×. In 2026, 9 of 11 months were positive, and four of them returned more than 15%. Anyone running this strategy live would have needed to stay patient through a long flat period first.

Price moves ≈ +255% Funding +73% Fees −8% Total +320%
Where the return came from, as a share of starting capital. The price figure is approximate: it is the total minus funding and fees.
Benchmark return, same period−92.5%
Net funding collected+73.4% of starting capital
Fees paid−8.1% of starting capital
Trades21,007
Average long / short exposure+49.9% / −49.8%
Positive months36 of 59
Best month+22.96% (Sep 2025)
Worst month−12.95% (Feb 2022)
Liquidations0

Why it works

1. Strength in crypto tends to persist

Attention, capital and narratives move through the market slowly. When a sector or a coin starts to lead, traders keep buying into the strength for weeks. When a coin starts to fade, holders keep leaving. A 60-day window is long enough to filter out daily noise and short enough to catch these rotations while they are still running.

2. The market's direction mostly cancels out

Both sides of the book are the same size. When the whole market falls, the longs and the shorts both fall, and the strategy earns the gap between them. This is why it could make money while its benchmark lost 92.5%.

Longs Market Shorts start time →
An illustration, not backtest data. The market falls, but past winners fall less than past losers. The shaded gap is what a long-short book earns.

3. Funding was a second source of income

On perpetual futures, longs and shorts pay each other funding. In this backtest, the funding the shorts received was larger than the funding the longs paid. The net result was +73% of starting capital, separate from any price gains. Funding conditions change over time, so treat this as a bonus, not a guarantee.

4. Many small bets

Each side holds 20% of the ranked coins at equal weights. No single coin can decide the result, and fees stayed low (8.1% over almost five years) because the book is reset only every fifth day.

When it fails

Momentum loses money in sharp reversals. These are moments when last quarter's losers bounce hard, or when the leaders crash all at once. Small coins that have been falling can jump violently in a short squeeze, and that move hits the short side. The losing stretch in 2022 and early 2023 shows what this looks like. A 37% drawdown is large for a book that is market-neutral on paper.

Ideas to improve it

Skip the most recent 20 days

The code already computes a 20-day return (mom_s) but never uses it. A classic refinement measures momentum from 60 days ago up to 20 days ago. This keeps the medium-term trend but ignores the most recent move, which is the part most likely to reverse. It might reduce losses from sharp bounces.

Weight coins by inverse volatility

With equal weights, a wild small coin on the short side carries as much risk as a calm large coin. If each position is sized by the inverse of its recent volatility, the most explosive coins get smaller weights. That targets the short squeezes behind the worst drawdowns, while each side still totals 50% of capital.

Make it yours

This whole strategy is about 25 lines of code, built on one idea: rank, then go long the top and short the bottom. Every setting is a lever you can test. Try a 30-day or 90-day lookback, a 10% or 30% slice on each side, or a daily or weekly rebalance. Or rank coins by something other than price momentum. 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.