Trend-Following Backtester · Guide · backtest 한국어
equity · ES
Endesa S.A. backtest
10 trend-following strategies were compared on the full daily history of Endesa S.A.. 4 beat buy-and-hold CAGR; SMA 크로스오버 ranks first by Sharpe, matching the main backtester.
Results by strategy
4 of 10 beat buy and hold (CAGR 2.9%, drawdown -71.4%).
Sharpe leader (same as main): SMA 크로스오버 — CAGR 5.4%, MDD -62.6%, Sharpe 0.40, 54% exposure.
No strategy retained at least 75% of buy-and-hold CAGR while reducing drawdown by both 20% relatively and 5 percentage points absolutely.
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 |
|---|---|---|---|---|---|---|---|
| SMA 크로스오버 fast=15, slow=195 |
5.4% | -62.6% | 0.40 | 0.09 | 4.1x | 39 | 54% |
| 볼린저 밴드 돌파 n=41, k=3.4 |
1.7% | -11.2% | 0.36 | 0.15 | 1.6x | 16 | 6% |
| Donchian 채널 돌파 entryN=106, exitN=77 |
4.4% | -72.2% | 0.35 | 0.06 | 3.1x | 29 | 50% |
| EMA 크로스오버 fast=59, slow=112 |
3.8% | -74.1% | 0.30 | 0.05 | 2.7x | 33 | 56% |
| ROC 모멘텀 n=129, threshold=0.01 |
3.6% | -67.0% | 0.30 | 0.05 | 2.6x | 163 | 54% |
| ADX / DI 방향성 period=36, threshold=30 |
0.8% | -9.7% | 0.27 | 0.08 | 1.2x | 6 | 4% |
| Supertrend period=20, mult=3.4 |
2.6% | -61.6% | 0.23 | 0.04 | 2.0x | 141 | 56% |
| Keltner 채널 돌파 emaPeriod=24, atrPeriod=24, mult=3.3 |
1.3% | -18.8% | 0.23 | 0.07 | 1.4x | 44 | 9% |
| Parabolic SAR step=0.005, maxStep=0.02 |
-0.8% | -57.4% | 0.04 | -0.01 | 0.8x | 145 | 59% |
| MACD fast=18, slow=70, signal=15 |
-2.1% | -65.4% | -0.04 | -0.03 | 0.6x | 304 | 51% |
| Buy and hold | 2.9% | -71.4% | 0.25 | 0.04 | 2.2x | 1 | 100% |
Rules of the top strategy
When the short average rises above the long average, it reads that as an uptrend starting.
- Buy — Buy when the 15-day average price crosses above the 195-day average
- Sell — Sell (to cash) when the 15-day average falls below the 195-day average