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. 0 beat buy-and-hold CAGR; Donchian 채널 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is EMA 크로스오버 (CAGR 12.7%, MDD -63.5%).

Data 1989-07-20 ~ 2026-08-31daily bars 9,347 (37.1 years)Costs 0.5%Venue XNASMonthly snapshot 2026-08-31

Results by strategy

0 of 10 beat buy and hold (CAGR 14.9%, drawdown -85.2%).

Sharpe leader (same as main): Donchian 채널 돌파 — CAGR 14.7%, MDD -83.5%, Sharpe 0.53, 81% exposure.

Return/drawdown alternative: EMA 크로스오버 — CAGR is 0.2%p lower than buy and hold, while drawdown improves by 1.7%p (CAGR 12.7%, MDD -63.5%, 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=79
14.7%-83.5%0.530.18162.8x9181%
SMA 크로스오버
fast=66, slow=196
13.5%-71.2%0.530.19111.1x4761%
EMA 크로스오버
fast=41, slow=47
12.7%-63.5%0.510.2083.7x10160%
Supertrend
period=32, mult=5
10.3%-88.6%0.460.1237.8x11554%
ROC 모멘텀
n=149, threshold=-0.06
7.8%-93.3%0.390.0816.0x20367%
ADX / DI 방향성
period=37, threshold=11
6.2%-83.2%0.350.079.3x30447%
Keltner 채널 돌파
emaPeriod=75, atrPeriod=13, mult=1.9
3.7%-85.9%0.270.043.8x20048%
Parabolic SAR
step=0.01, maxStep=0.32
2.6%-89.9%0.240.032.5x49053%
볼린저 밴드 돌파
n=52, k=1.6
2.8%-79.5%0.240.032.7x20442%
MACD
fast=21, slow=30, signal=16
-0.0%-97.3%0.17-0.001.0x45852%
Buy and hold14.9%-85.2%0.530.18174.4x1100%
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% -21% -43% -64% -85% 1990 1995 2000 2005 2010 2015 2020 2025 Buy and holdDonchian 채널 돌파
Donchian 채널 돌파 maximum drawdown -83.5% (2004-06-30 → 2009-03-20), recovered after 4,520 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 carried forward from the latest full optimization and replayed on this monthly dataset. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-optimize the same period and setupMore US assetsAll asset reports

Read next