Skip to content

Trend Following: full test results

1d barsEnabled for live tradingApproved for real money strategy id: trend

Time-series momentum on daily bars across the point-in-time top coins, flat while BTC is below its 200-day average.

The plain-language page for Trend Following · Terms used here

Enabled for live trading. Enabled: OOS CAGR 11.1%, Sharpe 0.58, CAGR at 3x costs 8.5% (walk-forward 2021-01-01..2026-11-25). Primary configuration (top-20 point-in-time universe, balanced, kill switch simulated): max DD -35.4%, 2025 -11.8%, 2026 to date 15.1%; BTC buy & hold CAGR 13.0%.

Out-of-sample summary

CAGR

+11.1%

BTC +13.0%

CAGR at 3× costs

+8.5%

stress test

Sharpe

0.58

BTC 0.50

Max drawdown

−35.4%

BTC −76.6%

Average invested

24%

rest in stablecoin

Longest under water

1009 days

2021-05-09 to 2024-02-12

Out-of-sample equity (growth of 1) against both benchmarks, with the underwater chart
Trend FollowingBTC buy & holdEqual weight of the top-N members Trend Following drawdown (computed from the curve)

The drawdown panel is computed from the strategy's curve: the fall from its previous high at each point. Curves are weekly points.

Show the numbers as a table
DateTrend FollowingBTC buy & holdEqual weight of the top-N membersTrend Following drawdown (computed from the curve)
2021-01-031.038×1.123×1.121×0.0%
2021-02-281.285×1.536×2.619×−5.7%
2021-04-251.410×1.670×3.406×−5.0%
2021-06-201.388×1.212×2.637×−15.0%
2021-08-151.407×1.599×3.252×−13.9%
2021-10-101.322×1.861×3.623×−19.1%
2021-12-051.311×1.682×3.398×−19.7%
2022-01-301.267×1.290×2.459×−22.5%
2022-03-271.267×1.594×2.882×−22.5%
2022-05-221.267×1.031×1.149×−22.5%
2022-07-171.267×0.708×0.877×−22.5%
2022-09-111.267×0.743×1.027×−22.5%
2022-11-061.267×0.712×0.991×−22.5%
2023-01-011.267×0.566×0.627×−22.5%
2023-02-261.380×0.802×1.011×−15.5%
2023-04-231.338×0.939×0.905×−18.1%
2023-06-181.177×0.897×0.650×−27.9%
2023-08-131.182×0.998×0.681×−27.7%
2023-10-081.068×0.950×0.597×−34.6%
2023-12-031.444×1.361×0.922×−11.6%
2024-01-281.522×1.431×1.001×−6.8%
2024-03-241.900×2.288×1.543×−1.3%
2024-05-191.820×2.256×1.300×−7.2%
2024-07-141.615×2.070×1.037×−17.6%
2024-09-081.539×1.868×0.879×−21.5%
2024-11-031.457×2.341×0.965×−25.7%
2024-12-291.833×3.191×1.457×−11.4%
2025-02-231.760×3.277×1.081×−15.0%
2025-04-201.589×2.900×0.878×−23.2%
2025-06-151.624×3.595×1.004×−21.5%
2025-08-101.923×4.061×1.282×−7.1%
2025-10-051.943×4.204×1.209×−6.1%
2025-11-301.619×3.076×0.696×−21.8%
2026-01-251.619×2.950×0.560×−21.8%
2026-03-221.619×2.310×0.428×−21.8%
2026-05-171.619×2.637×0.462×−21.8%
2026-07-121.619×2.171×0.387×−21.8%
2026-09-061.928×2.735×0.484×−6.8%
2026-11-011.973×2.667×0.475×−8.8%
2026-11-291.863×2.058×0.348×−13.8%
Return per calendar year, next to BTC buy & hold
Show the numbers as a table
YearTrend FollowingBitcoin
2021+26.7%+57.3%
20220.0%−64.2%
2023+24.8%+155.6%
2024+16.1%+121.3%
2025−11.8%−6.3%
2026+15.1%−31.0%

Bad stretches

2021+27%
20220%
2023+25%
2024+16%
2025−12%
2026+15%

Since 2025-01-01: +1.5% in total, worst fall −21.5%, on average 24% of the account in coins.

Longest time below a previous high: 1009 days, from 2021-05-09 to 2024-02-12. Expect long flat stretches.

Worst month: −11.3%.

Past performance, simulated or real, does not guarantee future results. These are backtests on historical data with modelled costs; live trading can and will differ. Crypto assets can lose most of their value.

What it does #

For each coin in its universe, the bot looks at whether the price rose over several lookback windows (20, 60 and 120 days by default) and whether it broke out of a price channel (a close above the highest close of the last 55 days turns it on, a close below the lowest close of the last 27 days turns it off). Each check is a vote; the average vote between 0 and 1 is the signal.

The position size is the signal times a volatility budget: a calm coin gets a larger share than a wild one, capped per coin. The whole book is scaled so it never exceeds the account (no leverage).

The BTC gate. While Bitcoin closes below its 200-day simple moving average, the bot holds nothing. This was the one variant declared before the research and adopted by its own pre-declared rule.

The universe. On the last day of each month, every USDT spot coin with at least 30 days of history is ranked by its average daily trading volume over the previous 30 days; the top 20 are the members for the next month. Stablecoins, wrapped or pegged coins and leveraged tokens are excluded.

Why it can work #

Crypto prices have shown multi-week trends driven by flows and leverage cycles. Volatility-based sizing keeps a single coin from dominating the risk, and being flat in bear markets avoids the deepest falls.

When it fails #

  • Sideways, choppy markets. Signals flip back and forth and every flip pays fees.
  • V-shaped reversals. It exits late and re-enters late.
  • Sudden crashes between daily closes. It only decides at the daily close; the kill switch is also checked between closes on every equity mark.
  • Altcoin rallies while BTC is weak. The BTC gate keeps it in cash.
  • Long flat stretches. Expect months or years below a previous high: the research shows the longest one. That is normal behaviour, not a malfunction.

What it trades live #

Spot only, long only, against USDT. Shorting via perpetual futures exists in the engine but is not enabled or evaluated by default and is not offered live.

By risk profile

The same walk-forward choices run on each profile, with that profile's kill switch and order cap simulated, at the modelled costs and at three times the costs.

ProfileCAGRat 3× costsSharpeMax DDMax DD at 3×Kill switch
Conservative up +8.7%up +7.3% 0.62−23.7%−25.7% at 35%: not fired
Balanced up +11.1%up +8.5% 0.58−35.4%−38.8% at 45%: not fired
Aggressive up +14.5%up +10.9% 0.61−44.1%−48.0% at 55%: not fired

Universe size sensitivity

The same strategy on smaller and larger universes (balanced profile). Reported only: these sizes were never used to choose anything.

UniverseVariantCAGRat 3× costsSharpeMax DDKill switch
Top 10Without the BTC gate down −1.1%down −0.6% −0.01−47.6% fired 2022-11-09
Top 10With the BTC gate (the default) up +15.9%up +12.5% 0.77−26.0% not fired
Top 30Without the BTC gate up +8.6%up +4.5% 0.46−39.4% not fired
Top 30With the BTC gate (the default) up +11.3%up +9.0% 0.66−28.1% not fired

All metrics next to BTC buy & hold

MetricTrend Followingat 3× costsBTC buy & hold
CAGRCompound annual growth rate over the out-of-sample period, after costs. +11.1% +8.5% +13.0%
SharpeAnnualised return divided by annualised volatility (zero risk-free rate). 0.58 0.48 0.50
Max drawdownThe worst fall from a previous high. −35.4% −38.8% −76.6%
VolatilityAnnualised volatility of daily returns. 22.5% 22.5% 56.7%
SortinoLike Sharpe, counting only downside volatility. 0.84 0.68 0.73
CalmarCAGR divided by the size of the worst drawdown. 0.31 0.22 0.17
Worst monthThe worst calendar month. −11.3% −12.0% −37.3%
Average investedAverage share of the account held in coins (the rest is stablecoin). 24.4% 24.4% 100.0%
Turnover / yearHow many times the account is traded over per year. 7.70 7.70 0.17
CostsFees and slippage paid, as a share of the starting equity. 10.1% 28.2% 0.1%

Parameters

The defaults are the registry's current choices. Change them for a paper bot or a backtest; results with your own parameters are not out-of-sample results.

NameTypeDefaultRangeMeaning
symbolsarray<string> BTC/USDT, ETH/USDT, BNB/USDT, SOL/USDT, XRP/USDT, ADA/USDT, DOGE/USDT, AVAX/USDT, LINK/USDT, LTC/USDT, DOT/USDT, TRX/USDT, BCH/USDT, ATOM/USDT, MATIC/USDT – Spot symbols (ccxt unified, e.g. BTC/USDT).
lookbacksarray<integer> 20, 60, 120 2 – 400 Return lookbacks (days); each votes by the sign of its return.
donchianinteger 55 5 – 400 Breakout channel (days); exit channel is half of it.
vol_lookbackinteger 30 5 – 250 Realized-vol window (days).
risk_per_assetnumber 0.1 0.01 – 1.0 Annualized vol budget per asset at full signal.
max_weightnumber 0.25 0.01 – 1.0 Cap per asset.
allow_shortboolean False – Short via USDT perpetuals on negative signal (requires futures).
universe_sizeinteger, may be empty 20 1 – 100 Trade the point-in-time top-N USDT spot coins by 30-day quote volume (re-ranked monthly) instead of `symbols`; null = trade exactly `symbols`.
excludearray<string> – Coins never traded (spot symbols, e.g. DOGE/USDT): removed from `symbols` and from the dynamic universe before ranking, so the next coin by volume takes the place. BTC still feeds the BTC rules when it is excluded from trading.
btc_gateboolean True – Hold nothing while BTC closes below its 200-day SMA.

Every trial of this research

Each parameter set that was tried, with its own out-of-sample Sharpe ratio (balanced profile, modelled costs). All of them count in the deflated Sharpe above.

ConfigurationParametersOOS Sharpe
trend top-20{"lookbacks": [20, 60, 120], "donchian": 55}0.33
trend top-20{"lookbacks": [20, 60, 120], "donchian": 20}0.31
trend top-20{"lookbacks": [10, 30, 60], "donchian": 55}0.17
trend top-20{"lookbacks": [10, 30, 60], "donchian": 20}0.26
trend top-20{"lookbacks": [40, 120, 240], "donchian": 55}0.37
trend top-20{"lookbacks": [40, 120, 240], "donchian": 20}0.42
trend_btc_gate top-20{"lookbacks": [20, 60, 120], "donchian": 55}0.63
trend_btc_gate top-20{"lookbacks": [20, 60, 120], "donchian": 20}0.60
trend_btc_gate top-20{"lookbacks": [10, 30, 60], "donchian": 55}0.56
trend_btc_gate top-20{"lookbacks": [10, 30, 60], "donchian": 20}0.59
trend_btc_gate top-20{"lookbacks": [40, 120, 240], "donchian": 55}0.64
trend_btc_gate top-20{"lookbacks": [40, 120, 240], "donchian": 20}0.63
trend top-10{"lookbacks": [20, 60, 120], "donchian": 55}0.42
trend top-10{"lookbacks": [20, 60, 120], "donchian": 20}0.52
trend top-10{"lookbacks": [10, 30, 60], "donchian": 55}0.39
trend top-10{"lookbacks": [10, 30, 60], "donchian": 20}0.48
trend top-10{"lookbacks": [40, 120, 240], "donchian": 55}0.54
trend top-10{"lookbacks": [40, 120, 240], "donchian": 20}0.64
trend_btc_gate top-10{"lookbacks": [20, 60, 120], "donchian": 55}0.74
trend_btc_gate top-10{"lookbacks": [20, 60, 120], "donchian": 20}0.79
trend_btc_gate top-10{"lookbacks": [10, 30, 60], "donchian": 55}0.75
trend_btc_gate top-10{"lookbacks": [10, 30, 60], "donchian": 20}0.78
trend_btc_gate top-10{"lookbacks": [40, 120, 240], "donchian": 55}0.78
trend_btc_gate top-10{"lookbacks": [40, 120, 240], "donchian": 20}0.77
trend top-30{"lookbacks": [20, 60, 120], "donchian": 55}0.48
trend top-30{"lookbacks": [20, 60, 120], "donchian": 20}0.60
trend top-30{"lookbacks": [10, 30, 60], "donchian": 55}0.10
trend top-30{"lookbacks": [10, 30, 60], "donchian": 20}0.26
trend top-30{"lookbacks": [40, 120, 240], "donchian": 55}0.40
trend top-30{"lookbacks": [40, 120, 240], "donchian": 20}0.49
trend_btc_gate top-30{"lookbacks": [20, 60, 120], "donchian": 55}0.74
trend_btc_gate top-30{"lookbacks": [20, 60, 120], "donchian": 20}0.80
trend_btc_gate top-30{"lookbacks": [10, 30, 60], "donchian": 55}0.62
trend_btc_gate top-30{"lookbacks": [10, 30, 60], "donchian": 20}0.61
trend_btc_gate top-30{"lookbacks": [40, 120, 240], "donchian": 55}0.78
trend_btc_gate top-30{"lookbacks": [40, 120, 240], "donchian": 20}0.78
trend fixed-15{"lookbacks": [20, 60, 120], "donchian": 55}1.10
trend fixed-15{"lookbacks": [20, 60, 120], "donchian": 20}1.06
trend fixed-15{"lookbacks": [10, 30, 60], "donchian": 55}1.10
trend fixed-15{"lookbacks": [10, 30, 60], "donchian": 20}1.04
trend fixed-15{"lookbacks": [40, 120, 240], "donchian": 55}1.03
trend fixed-15{"lookbacks": [40, 120, 240], "donchian": 20}1.08

Past performance, simulated or real, does not guarantee future results. These are backtests on historical data with modelled costs; live trading can and will differ. Crypto assets can lose most of their value.