Trend-Following Backtester · Guide · Assets 한국어
Assets
Samsung Electronics backtest
Korea's largest listed company. It cycles over multi-year semiconductor swings, which is a useful stress test for long-horizon trend strategies.
Results by strategy
0 of 10 beat buy and hold (CAGR 15.0%, drawdown -64.8%). Sorted by CAGR.
| Strategy · parameters | CAGR | Max drawdown | Sharpe | Calmar | Total return | Trades | Time in market |
|---|---|---|---|---|---|---|---|
| MACD fast=31, slow=109, signal=57 |
13.8% | -41.0% | 0.64 | 0.34 | 31.5x | 112 | 53% |
| ROC momentum n=18, threshold=-0.14 |
13.3% | -56.5% | 0.54 | 0.24 | 27.8x | 93 | 97% |
| SMA crossover fast=28, slow=85 |
13.0% | -42.9% | 0.59 | 0.30 | 26.1x | 72 | 58% |
| Donchian channel breakout entryN=38, exitN=50 |
12.8% | -46.4% | 0.57 | 0.28 | 24.7x | 64 | 62% |
| EMA crossover fast=56, slow=82 |
12.3% | -45.1% | 0.56 | 0.27 | 22.2x | 55 | 61% |
| Supertrend period=29, mult=4.5 |
9.8% | -51.9% | 0.50 | 0.19 | 12.0x | 104 | 53% |
| Parabolic SAR step=0.005, maxStep=0.02 |
8.2% | -64.3% | 0.44 | 0.13 | 8.2x | 134 | 55% |
| Bollinger band breakout n=46, k=1.3 |
7.2% | -41.1% | 0.42 | 0.17 | 6.3x | 170 | 43% |
| Keltner channel breakout emaPeriod=45, atrPeriod=24, mult=1.7 |
6.8% | -49.0% | 0.40 | 0.14 | 5.7x | 178 | 42% |
| ADX / DI directional period=35, threshold=23 |
5.4% | -42.6% | 0.44 | 0.13 | 4.0x | 22 | 8% |
| Buy & hold | 15.0% | -64.8% | 0.57 | 0.23 | 41.8x | 1 | 100% |
The rules, strategy by strategy
MACD
Looks at the gap (MACD) between a short and long average crossing its own signal line.
- Buy Buy when the MACD line (31/109) crosses above its 57-day signal line
- Sell Sell when the MACD line crosses back below the signal line
- CAGR
- 13.8%
- Max drawdown
- -41.0%
- Sharpe
- 0.64
- Trades
- 112
- Time in market
- 53%
- Win rate
- 51%
ROC momentum
Rides the trend when recent return (momentum) over a window is above a threshold.
- Buy Buy when the last 18-day return is greater than -14%
- Sell Sell when the 18-day return drops to -14% or below
- CAGR
- 13.3%
- Max drawdown
- -56.5%
- Sharpe
- 0.54
- Trades
- 93
- Time in market
- 97%
- Win rate
- 51%
SMA crossover
When the short average rises above the long average, it reads that as an uptrend starting.
- Buy Buy when the 28-day average price crosses above the 85-day average
- Sell Sell (to cash) when the 28-day average falls below the 85-day average
- CAGR
- 13.0%
- Max drawdown
- -42.9%
- Sharpe
- 0.59
- Trades
- 72
- Time in market
- 58%
- Win rate
- 52%
Donchian channel breakout
A new high means a trend starting; a new low means it’s over (turtle-trading style).
- Buy Buy on a breakout above the highest high of the last 38 days
- Sell Sell when price breaks below the lowest low of the last 50 days
- CAGR
- 12.8%
- Max drawdown
- -46.4%
- Sharpe
- 0.57
- Trades
- 64
- Time in market
- 62%
- Win rate
- 52%
EMA crossover
Uses two exponential averages (more weight on recent prices) and trades their crossover.
- Buy Buy when the 56-day EMA crosses above the 82-day EMA
- Sell Sell when the 56-day EMA falls below the 82-day EMA
- CAGR
- 12.3%
- Max drawdown
- -45.1%
- Sharpe
- 0.56
- Trades
- 55
- Time in market
- 61%
- Win rate
- 51%
Supertrend
Trades the direction of a volatility-based trend line that trails below/above price.
- Buy Buy when price moves above the trend line (flips up) — 29-day volatility, 4.5× band
- Sell Sell when price drops below the trend line (flips down)
- CAGR
- 9.8%
- Max drawdown
- -51.9%
- Sharpe
- 0.50
- Trades
- 104
- Time in market
- 53%
- Win rate
- 51%
Parabolic SAR
Trades around the Parabolic SAR dots that accelerate toward price.
- Buy Buy when price rises above the SAR dots
- Sell Sell when price falls below the SAR dots
- CAGR
- 8.2%
- Max drawdown
- -64.3%
- Sharpe
- 0.44
- Trades
- 134
- Time in market
- 55%
- Win rate
- 50%
Bollinger band breakout
Breaking above the upper band (average plus a multiple of volatility) signals a strong move up.
- Buy Buy when the close breaks above the upper band of the 46-day average (1.3× volatility)
- Sell Sell when the close falls back to the 46-day middle average
- CAGR
- 7.2%
- Max drawdown
- -41.1%
- Sharpe
- 0.42
- Trades
- 170
- Time in market
- 43%
- Win rate
- 50%
Keltner channel breakout
Breaking above the channel top (average plus a multiple of volatility) signals an upside breakout.
- Buy Buy when the close breaks above the 45-day average + 1.7× volatility (Keltner top)
- Sell Sell when the close falls back to the 45-day average
- CAGR
- 6.8%
- Max drawdown
- -49.0%
- Sharpe
- 0.40
- Trades
- 178
- Time in market
- 42%
- Win rate
- 50%
ADX / DI directional
Looks at both the direction and the strength of the trend; holds only in a strong uptrend.
- Buy Buy when up-direction (+DI) beats down-direction (−DI) and trend strength (ADX, 35-day) is ≥ 23
- Sell Sell when direction flips or the trend weakens (ADX < 23)
- CAGR
- 5.4%
- Max drawdown
- -42.6%
- Sharpe
- 0.44
- Trades
- 22
- Time in market
- 8%
- Win rate
- 51%