SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · US

Okta, Inc. backtest

10 trend-following strategies were compared on the full daily history of Okta, Inc.. 4 beat buy-and-hold CAGR; EMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Donchian 채널 돌파 (CAGR 26.9%, MDD -45.2%).

Data 2017-04-07 ~ 2026-09-30daily bars 2,383 (9.5 years)Costs 0.5%Venue XNASMonthly snapshot 2026-09-30

Results by strategy

4 of 10 beat buy and hold (CAGR 25.9%, drawdown -84.6%).

Sharpe leader (same as main): EMA 크로스오버 — CAGR 28.6%, MDD -45.6%, Sharpe 0.83, 58% exposure.

Return/drawdown alternative: Donchian 채널 돌파 — CAGR is 2.7%p higher than buy and hold, while drawdown improves by 39.0%p (CAGR 26.9%, MDD -45.2%, exposure 53%).

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
EMA 크로스오버
fast=77, slow=196
28.6%-45.6%0.830.6310.8x758%
Donchian 채널 돌파
entryN=44, exitN=28
26.9%-45.2%0.820.609.6x2353%
SMA 크로스오버
fast=57, slow=179
28.2%-47.9%0.820.5910.6x1758%
ROC 모멘텀
n=192, threshold=-0.04
27.4%-57.1%0.800.489.9x5165%
볼린저 밴드 돌파
n=72, k=1.7
22.2%-42.9%0.750.526.7x3142%
Supertrend
period=14, mult=4.2
17.0%-67.7%0.590.254.4x3958%
ADX / DI 방향성
period=35, threshold=6
16.9%-59.3%0.590.284.4x11557%
Keltner 채널 돌파
emaPeriod=58, atrPeriod=10, mult=0.8
12.4%-67.3%0.510.183.0x8752%
Parabolic SAR
step=0.045, maxStep=0.34
2.6%-77.9%0.260.031.3x33553%
MACD
fast=6, slow=50, signal=8
2.3%-79.8%0.250.031.2x22553%
Buy and hold25.9%-84.6%0.690.318.8x1100%
1x 10x 2018 2020 2022 2024 2026 EMA 크로스오버Buy and hold
EMA 크로스오버: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -21% -42% -63% -85% 2018 2020 2022 2024 2026 Buy and holdEMA 크로스오버
EMA 크로스오버 maximum drawdown -45.6% (2021-02-12 → 2026-06-17), recovered after 2,056 days.

Rules of the top strategy

Uses two exponential averages (more weight on recent prices) and trades their crossover.

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