SleepWell Trade

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%).

Data 1989-07-20 ~ 2026-09-30daily bars 9,368 (37.2 years)Costs 0.5%Venue XNASMonthly snapshot 2026-09-30

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 · parametersCAGRMDDSharpeCalmarTotalTradesExposure
Donchian 채널 돌파
entryN=16, exitN=64
15.0%-87.5%0.540.17179.4x10378%
SMA 크로스오버
fast=67, slow=199
13.3%-72.0%0.520.18103.0x4761%
EMA 크로스오버
fast=42, slow=50
12.6%-61.7%0.510.2082.7x9860%
Supertrend
period=12, mult=4.2
10.0%-88.1%0.440.1134.6x15057%
ROC 모멘텀
n=140, threshold=0
8.2%-84.6%0.400.1018.6x28162%
MACD
fast=45, slow=73, signal=40
7.1%-76.0%0.370.0912.7x18854%
ADX / DI 방향성
period=37, threshold=11
6.2%-83.2%0.350.079.3x30447%
Keltner 채널 돌파
emaPeriod=77, atrPeriod=12, mult=2
4.2%-84.1%0.290.054.6x19047%
Parabolic SAR
step=0.01, maxStep=0.12
2.9%-90.3%0.250.032.9x48453%
볼린저 밴드 돌파
n=53, k=1.9
3.3%-76.5%0.250.043.3x17439%
Buy and hold14.9%-85.2%0.530.17173.6x1100%
1x 10x 100x 1990 1995 2000 2005 2010 2015 2020 2025 Donchian 채널 돌파Buy and hold
Donchian 채널 돌파: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -22% -44% -66% -87% 1990 1995 2000 2005 2010 2015 2020 2025 Buy and holdDonchian 채널 돌파
Donchian 채널 돌파 maximum drawdown -87.5% (2004-06-30 → 2009-03-20), recovered after 4,654 days.

Rules of the top strategy

A new high means a trend starting; a new low means it’s over (turtle-trading style).

Method and caveats

Past performance does not guarantee future returns. Parameters were selected on the same full-history sample using sharpe over 120 trials per strategy, so results contain in-sample bias. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-run the same setupMore US assetsAll asset reports

Read next