Playbooks

Near-High Momentum Long-Short: A +800% Crypto Backtest

Published

Some coins sit just under their recent high and climb steadily. Others are far below their high and slide lower each day. This strategy bets that both groups keep going. It ranks every coin on two simple measures, buys the five strongest, shorts the five weakest, and repeats every five days.

From January 2025 to October 2026 the benchmark fell 73%. Over the same window this long-short book grew $10,000 to about $90,000.

How it works

The strategy trades the head universe on daily bars. Every fifth calendar day it scores each coin on two signals:

  1. Nearness to the high. This is today's close divided by the highest high of the last 30 days. A coin at its high scores 1.0. A coin 30% below its high scores 0.7.
  2. Risk-adjusted momentum. This is the 14-day return divided by the standard deviation of daily returns over the same 14 days. A smooth +20% move ranks above a jumpy +20% move.

Each signal becomes a cross-sectional percentile rank from 0 to 1. The two ranks are added, so the final score runs from 0 to 2:

scorei=rank⁡% ⁣(Ci,tmax⁡30Hi)+rank⁡% ⁣(Ci,t/Ci,t−14−1σ14(ri))\text{score}_i = \operatorname{rank}_{\%}\!\left(\frac{C_{i,t}}{\max_{30} H_i}\right) + \operatorname{rank}_{\%}\!\left(\frac{C_{i,t}/C_{i,t-14} - 1}{\sigma_{14}(r_i)}\right)

The strategy sorts all coins by score. It goes long the top 5 and short the bottom 5, with 10% of capital in each position, and runs at 2x leverage. It skips the rebalance if fewer than 10 coins have a valid score.

All coins in the universe daily bars Near the high close ÷ 30-day max high Smooth momentum 14-day return ÷ 14-day vol percentile rank 0–1 percentile rank 0–1 Score = rank + rank (0 to 2) Sort all coins by score Long top 5 10% of capital each Short bottom 5 10% of capital each Repeat every 5th day · 2x leverage
The full decision loop. Each signal is ranked against the rest of the universe, so the strategy always holds the relative leaders and laggards, even in a falling market.

The code also computes a 20-day volatility factor but never uses it. That leaves a ready-made hook for the first improvement below.

Backtest results

Test window: 1 January 2025 to 20 October 2026, daily bars, starting capital $10,000, 0.03% friction per trade, 2x leverage.

+800.33%

Annual return

+238.39%

2.15

Max drawdown

40.79%

The strategy returned +800%, which works out to 238% a year. The Sharpe ratio was 2.15 and the worst peak-to-trough drop was 40.8%. Over the same window the benchmark lost 73.2%. Because the long book (98% of equity on average) and the short book (97%) were almost equal, the result came mostly from the gap between leaders and laggards, not from market direction.

+40% +20% 0 −20% +45% −27% 2025 2026
Monthly returns. 17 of 22 months were positive. October 2026 covers only the first 20 days.

The record has two clear phases. 2025 compounded to about +463%, with only one losing month (March, −13%). 2026 to date is about +60% and much choppier. It had four losing months, including the worst month of the test (August, −27%), alongside the best (May, +45%). The edge held up, but it became noisier.

Benchmark return−73.2%
Positive months17 of 22
Trades1,589
Avg long / short exposure98% / 97% of equity
Fees paid≈ $3,814 (38% of start capital)
Funding paid≈ $9,164 (92% of start capital)

Costs mattered a lot. Funding and fees together took about $13,000, which is more than the starting capital. The strategy cleared that cost easily, but any version that trades more or holds more leverage will feel it.

Why it works

The score combines two well-documented market effects and adds a filter for noise.

1. Prices near a recent high tend to keep going. Traders anchor on recent highs. When a coin approaches its high, many expect it to stall, so good news gets priced in slowly. Once the level breaks, the move often continues. A coin far below its 30-day high usually has holders waiting to sell into any bounce, which caps rallies.

2. Momentum persists across coins. In crypto, capital rotates in waves. Narratives, listings and inflows push some coins up for weeks at a time, while supply unlocks and fading interest press others down. Ranking coins against each other captures that rotation directly.

3. Smooth trends beat lucky spikes. Dividing the 14-day return by its volatility rewards steady climbs and penalises one-candle pumps that often reverse. A coin needs a high rank on both signals to reach the long book, which filters out a lot of false signals.

LONG SHORT Nearness to 30-day high (rank) → Smooth momentum (rank) →
Illustration only, not real data. Each dot is a coin. The dashed lines mark equal total score. The strategy buys the top-right corner and shorts the bottom-left corner.

4. The hedge does the heavy lifting in bad markets. With equal long and short books, a broad crash hurts the longs and helps the shorts roughly equally. That is how the strategy could compound while the benchmark lost nearly three quarters of its value.

Keep in mind: this is a 22-month test with leverage, a 41% drawdown, and heavy funding costs. Momentum strategies also tend to fail at sharp market turns, when last month's losers bounce hardest. The weaker 2026 shows the edge is not guaranteed to stay at 2025 levels.

Ideas to improve it

1. Size positions by volatility

Every position gets 10% today, so a wild small-cap counts the same as a calm large-cap. Weighting each position by the inverse of its 20-day volatility (the factor the code already computes) should shrink the worst months, such as August 2026, without changing which coins are picked.

2. Add a rank buffer to cut turnover

Fees and funding together cost more than the starting capital. Many trades happen when a coin slips from 5th to 6th place and gets swapped out, then swapped back in. A buffer keeps a holding until it clearly falls out of favour, which means fewer trades and lower fees.

Build your own

This strategy is only two ranks added together and a sort. You can swap the 30-day window for 60 days, replace momentum with volume, or trade only the long side. Describe your idea to AlphaPilot in plain words and see how it would have performed.

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