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?
- Universe. It uses the top half of AlphaPilot's coin list (the
all_top50pctuniverse) with daily bars. A coin needs 60 days of price history before it can be ranked. - Score. Each coin's score is its return over the last 60 days.
- 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.
- 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.
- Hold. Every fifth day, it re-scores, re-ranks and resets the weights.
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:
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%
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.
| Benchmark return, same period | −92.5% |
| Net funding collected | +73.4% of starting capital |
| Fees paid | −8.1% of starting capital |
| Trades | 21,007 |
| Average long / short exposure | +49.9% / −49.8% |
| Positive months | 36 of 59 |
| Best month | +22.96% (Sep 2025) |
| Worst month | −12.95% (Feb 2022) |
| Liquidations | 0 |
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%.
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.