trend-followingmedium-high risk

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.

By Keel Research Team · Data as of 2026-12-01 · how this backtest was produced
EquityDrawdown
Sharpe
0.15
default settings
Total return
+0.3%
Worst drawdown
−33.2%
Trades
2,864

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

Globalsconfig
target_timeframe1d
UniverseassetsManual · HL Perps · 20 symbols20 resolved
Executionorders
rebalanceBufferedbuffer_threshold0.1buffer_moderelative+1
Pipeline13 steps
PriceDataLoaderData Loader
ohlcvstore
Parallel1 branches
return_vol
ohlcvload
ReturnVolatilityIndicator
window36d
return_volstore
ohlcvload
Parallel2 branches
fast
EWMAIndicator
window16
slow
EWMAIndicator
window64
CrossoverSignal Composer
fast_keyfastslow_keyslow
VolatilityStandardizerForecast Mapper
signal_typeprice_pointsohlcv_slotohlcv
ForecastScalerForecast Mapper
avg_abs_target10
ForecastCapperForecast Mapper
limit20
forecaststore
VolTargetWeightConverterPosition Sizer
return_vol_slotreturn_volpct_target0.25
IDMPortfolioAggregatorPosition Manager
forecast_slotforecastreturn_vol_slotreturn_volohlcv_slotohlcvtarget_vol0.25
LeverageCapRisk Manager
max_leverage2

Explore the settings

precomputed · updates instantly

Adjust a setting to see the exact backtested result, including the ones that lost money.

Complete 18-cell public cross-product on explicit resolved universes.

EWMAC speed (fast/slow days)
Coins
Sharpe
0.15
Return
0.3%
Worst DD
−33.2%
Trades
2,864

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)CoinsSharpeReturnWorst DDTrades
2_83 majors0.4019.4%−29.8%923
2_8top10_dec20260.181.2%−35.2%2,798
2_8top20_dec20260.203.1%−32.5%5,336
4_163 majors0.5432.9%−34.7%743
4_16top10_dec20260.256.3%−33.4%2,260
4_16top20_dec20260.246.1%−30.4%4,321
8_323 majors0.7656.4%−26.9%617
8_32top10_dec20260.4524.3%−27.8%1,797
8_32top20_dec20260.4321.7%−29.7%3,415
16_643 majors0.3615.2%−19.0%560
16_64top10_dec20260.289.0%−25.4%1,520
16_64top20_dec2026default0.150.3%−33.2%2,864
32_1283 majors-0.31-25.2%−32.8%417
32_128top10_dec2026-0.45-31.1%−37.8%1,129
32_128top20_dec2026-0.61-39.7%−49.5%2,142
64_2563 majors-0.08-14.2%−34.3%303
64_256top10_dec2026-0.48-30.0%−35.8%719
64_256top20_dec2026-0.67-39.0%−39.9%1,382

The data

Monthly returns

MonthReturn
2024-080.0%
2024-090.0%
2024-100.0%
2024-110.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 allocationDays held% of time heldAsset
-0.022970584.13ARB
0.008470584.13BTC
-0.014670584.13ENA
-0.006470584.13ETH
-0.011970584.13NEAR
-0.008970584.13SOL
-0.017970584.13SUI
-0.013970584.13TAO
-0.009670584.13UNI
-0.018470584.13WLD
-0.015570584.13XRP
-0.015370584.13kPEPE
0.008466379.12HYPE
-0.006160972.67VVV
-0.006244653.22PUMP
-0.017940348.09XPL
0.004537244.39ZEC
-0.00128133.53LIT
0.021626831.98XMR
-0.0276293.46PONS

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.

Questions

Common questions

Does Robert Carver's EWMAC trend rule work on crypto?

Over 2024-08-15 → 2026-12-01 on real Hyperliquid perps, the default settings earned a Sharpe of 0.15 with +0.3% total return and a 33.2% worst drawdown across 2,864 trades, net of fees, slippage, and funding. Read the drawdown expectations before sizing your account.

Which EWMAC speed works best on crypto perps?

You can adjust EWMAC speed (fast/slow days), Coins. The config explorer on this page lets you compare every setting we tested, including the ones that underperformed, with the exact backtested result for each.

More tests of this strategy

Related strategies

Which strategy did best on each coin →