Trend-Following Backtester · Guide · backtest 한국어
equity · US
Cognex Corporation backtest
10 trend-following strategies were compared on the full daily history of Cognex Corporation. 1 beat buy-and-hold CAGR; Donchian 채널 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is EMA 크로스오버 (CAGR 12.6%, MDD -61.7%).
Results by strategy
1 of 10 beat buy and hold (CAGR 14.9%, drawdown -85.2%).
Sharpe leader (same as main): Donchian 채널 돌파 — CAGR 15.0%, MDD -87.5%, Sharpe 0.54, 78% exposure.
Return/drawdown alternative: EMA 크로스오버 — CAGR is 0.1%p higher than buy and hold, while drawdown improves by -2.3%p (CAGR 12.6%, MDD -61.7%, exposure 60%).
The alternative must retain 75% of buy-and-hold CAGR, improve drawdown by at least 20% and 5 percentage points, and stay below 95% exposure; the ranking weights return retention 60% and drawdown improvement 40%.
| Strategy · parameters | CAGR | MDD | Sharpe | Calmar | Total | Trades | Exposure |
|---|---|---|---|---|---|---|---|
| Donchian 채널 돌파 entryN=16, exitN=64 |
15.0% | -87.5% | 0.54 | 0.17 | 179.4x | 103 | 78% |
| SMA 크로스오버 fast=67, slow=199 |
13.3% | -72.0% | 0.52 | 0.18 | 103.0x | 47 | 61% |
| EMA 크로스오버 fast=42, slow=50 |
12.6% | -61.7% | 0.51 | 0.20 | 82.7x | 98 | 60% |
| Supertrend period=12, mult=4.2 |
10.0% | -88.1% | 0.44 | 0.11 | 34.6x | 150 | 57% |
| ROC 모멘텀 n=140, threshold=0 |
8.2% | -84.6% | 0.40 | 0.10 | 18.6x | 281 | 62% |
| MACD fast=45, slow=73, signal=40 |
7.1% | -76.0% | 0.37 | 0.09 | 12.7x | 188 | 54% |
| ADX / DI 방향성 period=37, threshold=11 |
6.2% | -83.2% | 0.35 | 0.07 | 9.3x | 304 | 47% |
| Keltner 채널 돌파 emaPeriod=77, atrPeriod=12, mult=2 |
4.2% | -84.1% | 0.29 | 0.05 | 4.6x | 190 | 47% |
| Parabolic SAR step=0.01, maxStep=0.12 |
2.9% | -90.3% | 0.25 | 0.03 | 2.9x | 484 | 53% |
| 볼린저 밴드 돌파 n=53, k=1.9 |
3.3% | -76.5% | 0.25 | 0.04 | 3.3x | 174 | 39% |
| Buy and hold | 14.9% | -85.2% | 0.53 | 0.17 | 173.6x | 1 | 100% |
Rules of the top strategy
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 16 days
- Sell — Sell when price breaks below the lowest low of the last 64 days