Short answer: a trend-following system has four parts: a direction rule (for example price above its 20-day high, or a fast moving average above a slow one), an exit or trailing stop, a position size, and costs. It makes most of its money in a few long moves and gives some back in every range. In our own backtest of a classic Donchian-channel trend system on eight cryptocurrencies, the system cut the worst drawdown from −67% to −18%, but a placebo with the same average exposure did just as well on drawdown, and the timing advantage over that placebo was not statistically proven.
Below: the building blocks, how to size a trend position, our test with all numbers, and a checklist for testing a trend cBot in cTrader before you run it.
The building blocks
1. Direction rule
- Breakout (Donchian channel): long when the close is above the highest close of the last N days, flat or short when it is below the lowest close. Classic turtle-style values are 20 and 55 days.
- Moving-average filter: long while a fast average (for example 50) is above a slow one (for example 200), or while price is above a single average.
- Ensembles: instead of one lookback, average the signals of several (5, 10, 20, 60, 150 days). This makes the result less dependent on one lucky setting.
2. Exit
Either the opposite signal (close below the lowest close of N days), a trailing stop a multiple of the Average True Range (ATR) behind price, or both. Wide exits keep you in long trends; tight exits cut losses in ranges but also cut the big winners that pay for everything.
3. Position size
Most professional trend systems scale size by volatility: the more an asset swings, the smaller the position. That keeps one wild market from dominating the account.
4. Costs
Spread, commission, swap or funding, and slippage on breakouts (breakout orders are filled when everyone else wants the same thing). Costs matter less on daily charts than on 5-minute charts, because each trade aims for a much larger move.
Why trend systems bleed in ranges
Every breakout that fails becomes a small loss. In a sideways market that can happen ten or fifteen times in a row. This is normal behaviour, not a broken system, but it is the part that makes most people switch the system off just before the next big trend. Before you start, look up the longest losing streak in your backtest and decide whether you can sit through it.
Worked example: volatility-scaled position size
Our test used this rule: exposure = signal strength × target volatility ÷ asset volatility, capped at 100% of capital.
- Nine Donchian lookbacks (5 to 360 days); six of them are long, three are flat. Signal strength = 6 / 9 = 0.67.
- Target volatility: 25% per year.
- The coin’s volatility over the last 90 days: 80% per year.
- Exposure = 0.67 × 25% / 80% = 21% of capital.
On a 10,000 USD account that means about 2,100 USD in the coin. If its volatility falls to 40%, the same signal allows 42%. In practice this kept the average exposure in our test around 20%.
What our backtest showed
We tested the ensemble described above on eight large cryptocurrencies (BTC, ETH, BNB, LTC, XRP, ADA, DOGE, SOL; Binance spot, daily closes, decision at the daily close, trade at the next open, 10 basis points cost per unit of turnover). Long or cash only, January 2018 to September 2026. Everything from July 2022 on was kept aside as an untouched holdout (1,552 days).
| Holdout, equal-weight portfolio | Annual return | Sharpe ratio | Worst drawdown |
|---|---|---|---|
| Trend system | 10% | 0.86 | −18% |
| Buy and hold | 31% | 0.75 | −67% |
| Placebo (same exposure, shifted in time) | – | 0.67 | −18% |
Three things stand out:
- Lower risk, lower return. The system made far less than holding the coins, but its worst drawdown was a quarter of buy and hold.
- The drawdown came from sizing, not timing. The placebo, which used the same exposure series shifted to random dates, had the same −18% worst drawdown. Small average exposure, not clever entries, did most of the protecting.
- The timing edge is not proven. Against the placebo the system’s Sharpe ratio was 0.19 higher, but the 95% confidence interval ran from −0.33 to +0.66 (p = 0.11). Per coin, none of the eight beat its placebo clearly. In the earlier, in-sample years the advantage looked large (Sharpe 1.26 vs 0.73), mostly thanks to staying out of the 2018 crash; in the holdout it shrank.
What the test does not cover: forex, gold or index trend systems, short selling, and intraday trend rules. Published long-term studies on futures report trend-following profits over decades; our test only says that on these coins, in this period, the timing part was not distinguishable from luck.
Checklist: testing a trend cBot in cTrader
- Write the rules down so that a cBot can follow them without judgement: lookback, entry, exit, size, maximum positions.
- Backtest on enough history to include at least one long trend and one long range in the same market.
- Use realistic costs and, for breakouts on lower timeframes, tick data. Our guide How to backtest a cTrader cBot before you buy or run it shows the settings.
- Keep a holdout. Optimise on the first part of the data, then run the chosen settings once on the rest. If the result collapses, the settings were fitted to noise.
- Compare with a placebo. Run the same exposure at random times, or simply compare with a constant small position. If the system does not beat that, the protection comes from size, not signals.
- Forward test on demo for several weeks before real money.
cBots for automated rules are listed on the cTrader cBots page. If you plan to run a bot on a funded account, also read the prop firm cBot checklist.
Trend following can lose for long stretches, and leveraged products can lose more than your deposit. Test any rule on a demo account first.
FAQ
Does trend following still work?
Long-term studies on diversified futures say it has historically paid over decades, with long flat periods. In our own test on eight cryptocurrencies from mid-2022 to September 2026, the system reduced risk, but its timing advantage over a placebo was not statistically proven.
Which timeframe is best for trend following?
Higher timeframes keep costs small relative to each trade. Our test used daily bars. Intraday trend rules need very low costs and tick-data backtests.
Moving average or breakout: which is better?
They catch the same big moves at slightly different times. An ensemble of several lookbacks is usually more robust than the single best setting from an optimisation.
Why does my trend cBot lose in some months?
Ranging markets produce repeated false breakouts. Check the losing streaks in your backtest; if the live streak is longer than anything in the test, review the rules.
Sources: AlgoScriptX research notes, October 2026 (Donchian ensemble 5–360 days, Binance daily data 2018-01 to 2026-09, holdout from 2022-07, 200 time-shifted placebo runs).



