EWMAC Trend Following on Crypto (Carver's Rule)
Does Robert Carver's EWMAC trend rule work on crypto? Backtested on real Hyperliquid perps from 2024-08-15 to 2026-12-01, the default settings earned a Sharpe of 0.15 — +0.3% total return with a 33.2% worst drawdown across 2,864 trades in 226 positions, net of fees, slippage, and funding.
2024-08-15 → 2026-12-01 · net of fees, slippage, and funding · price-only Sharpe 0.19 · these are the default settings, not a hand-picked best case.
At $1,000, this strategy’s worst historical dip was about $332. Free account, your own Hyperliquid keys. Keel only trades.
How it works
For each coin the strategy takes two exponentially weighted moving averages of the daily close, a fast one and a slow one four times as long, and subtracts the slow from the fast. A positive gap means the coin has been rising and a negative gap means it has been falling. The gap is divided by the coin's recent daily price volatility, so a calm coin and a wild coin can be compared. It is then scaled so a typical reading is 10 and capped at 20 either way. That number is the forecast.
The position follows the forecast. A forecast of +10 buys the coin at a size that gives the position the target volatility, +20 buys twice that, and negative forecasts go short the same way. The account is spread equally across the coins and scaled up because they do not all move together. A position is traded only when it has drifted more than a tenth from its target, and then only back to the edge of that band.
The default is the 16-day and 64-day pair. The settings grid runs all six pairs in the book, from 2 and 8 days to 64 and 256.
Where the rule comes from
EWMAC (exponentially weighted moving average crossover) is the trend rule in Robert Carver's Systematic Trading (Harriman House, 2015): the same six speeds, the volatility adjustment, a typical forecast of 10 and a cap of 20. Keel built this version from its own public components. It is our reading of the published rule and is not affiliated with or endorsed by the author.
What differs from the book
- The book prints a fixed scaling number for each speed, estimated on futures. Here the scale is estimated from the coins themselves over a rolling 90 days.
- The book leaves a position alone until its target has moved more than a tenth away, then trades to the target. His later writing trades only to the edge of a band a tenth of the average position wide. Here the band is a tenth of the current target, traded to its edge.
- Perps trade in fractions, so there is no rounding to whole contracts.
- Total exposure is capped at twice the account.
- The coins are the most traded Hyperliquid perps on a fixed date, picked with hindsight. The coin list shows the date.
- The data starts in August 2024, a much shorter history than the decades of futures prices the book tests on.
- The two slowest pairs need months of data before they can trade, so they are tested on a shorter stretch than the fast ones.
When it tends to work
Long moves in one direction, up or down, that outlast the slow average. The rule adds to a position as the move strengthens and cuts it when volatility rises.
When it tends to struggle
Sideways markets where price crosses its averages back and forth. Each false start costs a little, and the fast pairs trade often enough for fees to matter.
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
Globals(target_timeframe="1d")Universe(mode="manual", symbols=["BTC", "ETH", "HYPE", "ZEC", "SOL", "NEAR", "XRP", "PUMP", "LIT", "ENA", "XMR", "UNI", "PONS", "kPEPE", "WLD", "VVV", "SUI", "XPL", "ARB", "TAO"], market="perp", resolved=["BTC", "ETH", "HYPE", "ZEC", "SOL", "NEAR", "XRP", "PUMP", "LIT", "ENA", "XMR", "UNI", "PONS", "kPEPE", "WLD", "VVV", "SUI", "XPL", "ARB", "TAO"], resolved_at="2026-12-01T00:00:00Z")Execution(rebalance="buffered", buffer_threshold=0.1, buffer_mode="relative", rebalance_method="to_edge")Pipeline([ PriceDataLoader(), Store("ohlcv"), {"return_vol": [Load("ohlcv"), ReturnVolatility(window="36d"), Store("return_vol")]}, Load("ohlcv"), {"fast": [EWMA(window=16)], "slow": [EWMA(window=64)]}, Crossover(fast_key="fast", slow_key="slow"), VolatilityStandardizer(signal_type="price_points", ohlcv_slot="ohlcv"), ForecastScaler(avg_abs_target=10.0), ForecastCapper(limit=20.0), Store("forecast"), VolTargetWeightConverter(return_vol_slot="return_vol", pct_target=0.25), IDMPortfolioAggregator(forecast_slot="forecast", return_vol_slot="return_vol", ohlcv_slot="ohlcv", target_vol=0.25), LeverageCap(max_leverage=2.0),], name="carver_ewmac_trend_crypto")Explore the settings
precomputed · updates instantlyAdjust a setting to see the exact backtested result, including the ones that lost money.
Complete 18-cell public cross-product on explicit resolved universes.
Heads up: weaker risk-adjusted return.
At $1,000, these settings' worst historical dip was about $332. You land in the editor with this exact setup. Free account, your own keys.
Compare all 18 settings
| EWMAC speed (fast/slow days) | Coins | Sharpe | Return | Worst DD | Trades |
|---|---|---|---|---|---|
| 2_8 | 3 majors | 0.40 | 19.4% | −29.8% | 923 |
| 2_8 | top10_dec2026 | 0.18 | 1.2% | −35.2% | 2,798 |
| 2_8 | top20_dec2026 | 0.20 | 3.1% | −32.5% | 5,336 |
| 4_16 | 3 majors | 0.54 | 32.9% | −34.7% | 743 |
| 4_16 | top10_dec2026 | 0.25 | 6.3% | −33.4% | 2,260 |
| 4_16 | top20_dec2026 | 0.24 | 6.1% | −30.4% | 4,321 |
| 8_32 | 3 majors | 0.76 | 56.4% | −26.9% | 617 |
| 8_32 | top10_dec2026 | 0.45 | 24.3% | −27.8% | 1,797 |
| 8_32 | top20_dec2026 | 0.43 | 21.7% | −29.7% | 3,415 |
| 16_64 | 3 majors | 0.36 | 15.2% | −19.0% | 560 |
| 16_64 | top10_dec2026 | 0.28 | 9.0% | −25.4% | 1,520 |
| 16_64 | top20_dec2026default | 0.15 | 0.3% | −33.2% | 2,864 |
| 32_128 | 3 majors | -0.31 | -25.2% | −32.8% | 417 |
| 32_128 | top10_dec2026 | -0.45 | -31.1% | −37.8% | 1,129 |
| 32_128 | top20_dec2026 | -0.61 | -39.7% | −49.5% | 2,142 |
| 64_256 | 3 majors | -0.08 | -14.2% | −34.3% | 303 |
| 64_256 | top10_dec2026 | -0.48 | -30.0% | −35.8% | 719 |
| 64_256 | top20_dec2026 | -0.67 | -39.0% | −39.9% | 1,382 |
The data
Monthly returns
| Month | Return |
|---|---|
| 2024-08 | 0.0% |
| 2024-09 | 0.0% |
| 2024-10 | 0.0% |
| 2024-11 | 0.0% |
| 2024-12 | -0.3% |
| 2025-01 | +0.1% |
| 2025-02 | +9.0% |
| 2025-03 | +5.4% |
| 2025-04 | -5.9% |
| 2025-05 | -4.2% |
| 2025-06 | -2.8% |
| 2025-07 | -0.3% |
| 2025-08 | -1.4% |
| 2025-09 | -5.8% |
| 2025-10 | -0.9% |
| 2025-11 | +6.8% |
| 2025-12 | +4.4% |
| 2026-01 | -7.6% |
| 2026-02 | +7.8% |
| 2026-03 | +0.3% |
| 2026-04 | -7.4% |
| 2026-05 | -1.9% |
| 2026-06 | +3.5% |
| 2026-07 | -5.4% |
| 2026-08 | -5.6% |
| 2026-09 | +15.6% |
| 2026-10 | -7.8% |
| 2026-11 | +11.3% |
| 2026-12 | -2.0% |
Which assets it traded
| Avg allocation | Days held | % of time held | Asset |
|---|---|---|---|
| -0.0229 | 705 | 84.13 | ARB |
| 0.0084 | 705 | 84.13 | BTC |
| -0.0146 | 705 | 84.13 | ENA |
| -0.0064 | 705 | 84.13 | ETH |
| -0.0119 | 705 | 84.13 | NEAR |
| -0.0089 | 705 | 84.13 | SOL |
| -0.0179 | 705 | 84.13 | SUI |
| -0.0139 | 705 | 84.13 | TAO |
| -0.0096 | 705 | 84.13 | UNI |
| -0.0184 | 705 | 84.13 | WLD |
| -0.0155 | 705 | 84.13 | XRP |
| -0.0153 | 705 | 84.13 | kPEPE |
| 0.0084 | 663 | 79.12 | HYPE |
| -0.0061 | 609 | 72.67 | VVV |
| -0.0062 | 446 | 53.22 | PUMP |
| -0.0179 | 403 | 48.09 | XPL |
| 0.0045 | 372 | 44.39 | ZEC |
| -0.001 | 281 | 33.53 | LIT |
| 0.0216 | 268 | 31.98 | XMR |
| -0.0276 | 29 | 3.46 | PONS |
What this is: a historical backtest on real Hyperliquid market data, net of fees, slippage, and funding. Its worst historical drawdown was 33.2%. 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.