Up or Down About

Strategy backtest: Oracle

Each model's prediction at today's close sets tomorrow's position (long or short). Returns are daily log returns over the test period (8 Jun 2021 to 25 Sep 2026), net of costs charged on every position change.

Verdict

2 of 7 strategies beat buy & hold on Sharpe ratio

With hindsight, the best on the test period is Bagging (KNN) at 0.33 against 0.23 for buy & hold. Drag the cost slider to see how quickly turnover erodes any edge.

Risk and return

Annualised with 252 trading days. Sharpe and Sortino assume a zero risk-free rate; Calmar = annual return รท max drawdown.

StrategyTotal returnAnnual returnVolatilitySharpeSortinoMax drawdownCalmarHit rateTradesCosts
Bagging (KNN) +108.6% +14.9% 42.0% 0.33 0.49 58.6% 0.25 51.0% 552 55.15%
Gradient Boosting +74.1% +11.1% 42.0% 0.25 0.37 49.0% 0.23 49.8% 550 54.95%
Extra Trees +32.6% +5.5% 42.1% 0.13 0.20 48.3% 0.11 48.8% 294 29.35%
Linear SVC -22.0% -4.6% 42.1% -0.11 -0.16 73.8% -0.06 48.7% 332 33.15%
SVM (RBF) -33.0% -7.3% 42.1% -0.18 -0.27 60.0% -0.12 47.5% 438 43.75%
Random Forest -58.6% -15.4% 42.1% -0.40 -0.55 64.4% -0.24 47.5% 442 44.15%
Logistic Regression -71.8% -21.3% 42.1% -0.57 -0.77 85.0% -0.25 48.3% 376 37.55%
Buy & hold +68.2% +10.3% 42.0% 0.23 0.35 64.6% 0.16 51.6% 1 0.05%

Costs and risk

Would it survive real trading, and was the return worth the risk?

Takeaway With free trading, 3 of 7 strategies beat buy & hold on Sharpe; at 50 bp, none do. Bagging (KNN) changed position 552 times in 1,332 trading days.

Takeaway In long/short mode every strategy is always fully invested (long or short), so they all carry the stock's volatility. Only the return differs.

Inside one strategy

Change the model with the "Detail model" selector