Regime-Gated Crypto Index (Risk-Managed, Top-15)
Does a regime-gated crypto index work? Backtested on real Hyperliquid perps from 2024-08-15 to 2026-09-29, the default settings earned a Sharpe of 1.2 — +196.8% total return with a 42.5% worst drawdown across 394 trades in 104 positions, net of fees, slippage, and funding.
2024-08-15 → 2026-09-29 · net of fees, slippage, and funding · price-only Sharpe 1.35 · these are the default settings, not a hand-picked best case.
At $1,000, this strategy’s worst historical dip was about $425. Free account, your own Hyperliquid keys. Keel only trades.
How it works
How it works
Crypto has two structural features this strategy leans on: trends persist for long stretches, and crashes tend to grind lower over weeks rather than gap in a single day. It holds a broad, equal-weight basket of the top-15 perpetuals by volume at full 1x exposure — but only while BTC, the asset that leads the whole complex, trades above its 100-day trend line. When BTC closes below that line, the strategy goes entirely to cash: no shorting, no leverage, one switch. The basket is deliberately simple; the BTC risk-off switch is the edge, stepping out ahead of the worst of a downturn.
When it works best
It profits in BTC uptrends: while BTC holds its 100-day line, the strategy rides the full basket and compounds the up-leg. Breadth beyond the four majors adds diversification without giving back much return, up to around 12–15 names. A plain always-invested version of the same basket lost money over the window — the gate is what turns it positive.
When it struggles
Two conditions hurt. First, whipsaws: when BTC chops back and forth across its trend line, each false switch costs an exit, a re-entry and a re-entry lag. Second, and more important, beta drawdown inside risk-on periods — the gate only reacts to BTC's trend, so a sharp basket sell-off while BTC is still above its line is absorbed in full. That is why the worst drawdown was 42.5% even with the gate. This is a risk-managed index, not a low-risk one — that drawdown is genuine crypto beta the switch does not remove.
How it’s built
The exact strategy behind this backtest, with no black box. Fork it to change it and run your own backtest.
Configuration
Factories
Globals(target_timeframe="1d", bar_offset="12h")Universe(mode="top_volume", top_n=15, market="perp", resolved=["BTC", "DOGE", "ETH", "GRAM", "HYPE", "LINK", "LIT", "PUMP", "SOL", "SUI", "VVV", "XPL", "XRP", "ZEC", "kPEPE"], resolved_at="2026-07-07T20:47:00.237310+00:00")Execution(rebalance="buffered", buffer_threshold=0.1, buffer_mode="relative", rebalance_method="to_edge")btc_trend = Pipeline([ AssetSelect(symbols=["BTC"]), EWMA(window=2), MarketTrendRegimeFilter(fast_period=2, slow_period=100, index_method="equal_weight"),], name="btc_trend")Pipeline([ PriceDataLoader(), { "basket": [ConstantForecast(value=10.0)], "btc_regime": [btc_trend], }, RegimeGate(signal_key="basket", index_key="btc_regime", condition="index > 0"), EqualWeightSizer(target_leverage=1.0, max_weight=0.15),], name="regime_gated_crypto_index")Explore the settings
precomputed · updates instantlyAdjust a setting to see the exact backtested result, including the ones that lost money.
Complete 12-cell public cross-product on explicit resolved universes.
At $1,000, these settings' worst historical dip was about $425. You land in the editor with this exact setup. Free account, your own keys.
Compare all 12 settings
| Pinned index basket | BTC trend line | Sharpe | Return | Worst DD | Trades |
|---|---|---|---|---|---|
| Top 10 coins | 50-day | 0.76 | 70.7% | −51.4% | 287 |
| Top 10 coins | 100-day | 1.10 | 148.6% | −35.5% | 251 |
| Top 10 coins | 200-day | 0.59 | 43.9% | −38.8% | 209 |
| Top 12 coins | 50-day | 0.94 | 111.6% | −50.5% | 326 |
| Top 12 coins | 100-day | 1.24 | 200.9% | −36.4% | 294 |
| Top 12 coins | 200-day | 0.61 | 47.2% | −40.3% | 247 |
| Top 15 coins | 50-day | 0.99 | 130.7% | −46.5% | 444 |
| Top 15 coins | 100-daydefault | 1.20 | 196.8% | −42.5% | 394 |
| Top 15 coins | 200-day | 0.40 | 16.3% | −46.5% | 338 |
| Top 30 coins | 50-day | 0.69 | 61.8% | −50.9% | 881 |
| Top 30 coins | 100-day | 0.79 | 84.1% | −46.3% | 763 |
| Top 30 coins | 200-day | 0.16 | -11.9% | −50.7% | 633 |
The data
Monthly returns
| Month | Return |
|---|---|
| 2024-08 | 0.0% |
| 2024-09 | 0.0% |
| 2024-10 | +13.8% |
| 2024-11 | +84.3% |
| 2024-12 | +7.9% |
| 2025-01 | -0.2% |
| 2025-02 | -30.0% |
| 2025-03 | 0.0% |
| 2025-04 | +8.8% |
| 2025-05 | +6.9% |
| 2025-06 | -0.5% |
| 2025-07 | +19.3% |
| 2025-08 | +9.5% |
| 2025-09 | +3.5% |
| 2025-10 | -14.8% |
| 2025-11 | 0.0% |
| 2025-12 | 0.0% |
| 2026-01 | 0.0% |
| 2026-02 | 0.0% |
| 2026-03 | 0.0% |
| 2026-04 | -3.0% |
| 2026-05 | +11.7% |
| 2026-06 | 0.0% |
| 2026-07 | 0.0% |
| 2026-08 | +4.3% |
| 2026-09 | +24.9% |
Which assets it traded
| Avg allocation | Days held | % of time held | Asset |
|---|---|---|---|
| 0.096 | 387 | 49.94 | BTC |
| 0.096 | 387 | 49.94 | DOGE |
| 0.096 | 387 | 49.94 | ETH |
| 0.096 | 387 | 49.94 | LINK |
| 0.096 | 387 | 49.94 | SOL |
| 0.096 | 387 | 49.94 | SUI |
| 0.096 | 387 | 49.94 | XRP |
| 0.096 | 387 | 49.94 | kPEPE |
| 0.0906 | 326 | 42.06 | HYPE |
| 0.0865 | 272 | 35.1 | VVV |
| 0.0779 | 166 | 21.42 | PUMP |
| 0.0733 | 123 | 15.87 | XPL |
| 0.0708 | 98 | 12.65 | ZEC |
| 0.069 | 76 | 9.81 | LIT |
| 0.0667 | 39 | 5.03 | GRAM |
What this is: a historical backtest on real Hyperliquid market data, net of fees, slippage, and funding. Its worst historical drawdown was 42.5%. Expect drawdowns of that order or worse. Past performance does not predict future results, and this is not investment advice. Size your account so a full drawdown is survivable.