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.9%, MDD -63.5%).

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

Results by strategy

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

Sharpe leader (same as main): Donchian 채널 돌파 — CAGR 15.0%, MDD -83.5%, Sharpe 0.54, 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.9%, 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
15.0%-83.5%0.540.18174.2x9181%
SMA 크로스오버
fast=66, slow=196
13.8%-71.2%0.530.19118.9x4760%
EMA 크로스오버
fast=41, slow=47
12.9%-63.5%0.520.2089.6x10160%
Supertrend
period=32, mult=5
10.5%-88.6%0.470.1240.4x11554%
ROC 모멘텀
n=149, threshold=-0.06
8.0%-93.3%0.390.0917.2x20367%
ADX / DI 방향성
period=37, threshold=11
6.7%-83.2%0.360.0810.9x29847%
Keltner 채널 돌파
emaPeriod=75, atrPeriod=13, mult=1.9
4.2%-85.9%0.290.054.6x19848%
Parabolic SAR
step=0.01, maxStep=0.32
3.1%-89.9%0.260.033.1x48853%
볼린저 밴드 돌파
n=52, k=1.6
3.1%-79.5%0.250.043.1x20242%
MACD
fast=21, slow=30, signal=16
0.5%-97.3%0.190.001.2x45652%
Buy and hold15.2%-85.2%0.530.18186.7x1100%
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 setupAll asset reports

Read next