Trend-Following Backtester · Guide · backtest 한국어

equity · US

CNX Resources Corporation backtest

10 trend-following strategies were compared on the full daily history of CNX Resources Corporation. 4 beat buy-and-hold CAGR; SMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is ROC 모멘텀 (CAGR 9.4%, MDD -56.8%).

Data 1999-04-30 ~ 2026-07-31daily bars 6,855 (27.3 years)Costs 0.5%Venue XNYSMonthly snapshot 2026-07-31

Results by strategy

4 of 10 beat buy and hold (CAGR 6.8%, drawdown -95.7%).

Sharpe leader (same as main): SMA 크로스오버 — CAGR 10.9%, MDD -64.5%, Sharpe 0.48, 58% exposure.

Return/drawdown alternative: ROC 모멘텀 — CAGR is 4.1%p higher than buy and hold, while drawdown improves by 31.2%p (CAGR 9.4%, MDD -56.8%, exposure 54%).

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
SMA 크로스오버
fast=25, slow=220
10.9%-64.5%0.480.1716.6x3658%
EMA 크로스오버
fast=56, slow=81
9.7%-64.1%0.440.1512.4x5457%
ROC 모멘텀
n=126, threshold=0.03
9.4%-56.8%0.440.1611.5x21054%
Donchian 채널 돌파
entryN=35, exitN=67
8.7%-86.2%0.410.109.7x5669%
Supertrend
period=24, mult=4.7
3.3%-84.5%0.270.042.4x9454%
ADX / DI 방향성
period=46, threshold=6
2.9%-70.7%0.250.042.2x31054%
볼린저 밴드 돌파
n=48, k=1.8
0.8%-87.6%0.170.011.2x13837%
Keltner 채널 돌파
emaPeriod=57, atrPeriod=19, mult=3.6
-0.1%-72.0%0.11-0.001.0x6822%
MACD
fast=6, slow=52, signal=10
-5.9%-97.1%0.03-0.060.2x59352%
Parabolic SAR
step=0.015, maxStep=0.12
-5.8%-94.3%0.02-0.060.2x49752%
Buy and hold6.8%-95.7%0.390.076.0x1100%
1x 10x 2000 2004 2008 2012 2016 2020 2024 SMA 크로스오버Buy and hold
SMA 크로스오버: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -24% -48% -72% -96% 2000 2004 2008 2012 2016 2020 2024 Buy and holdSMA 크로스오버
SMA 크로스오버 maximum drawdown -64.5% (2008-06-18 → 2013-09-27), recovered after 5,935 days.

Rules of the top strategy

When the short average rises above the long average, it reads that as an uptrend starting.

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