Skip to content
Applied Quant

Backtest lab

Vectorised engine on a 12-name synthetic universe, 1260 trading days. Every change is logged as an experiment.

Long when the fast average is above the slow one, flat otherwise.

strategy.pyWrite your own →

The lab runs a vectorised port of this function for instant feedback. “Run in Python” opens a full harness in the playground.

Data

Persistent bull and bear regimes: trend can work

Simulated · not predictive
StrategyBuy & hold
0.80×1.00×1.20×0.0y2.0y4.0y
Drawdown
-6%-4%-2%0%0.0y2.0y4.0y
Validation splits
Fold 1
SR 1.08
Fold 2
SR -0.80
Fold 3
SR 1.98
Fold 4
SR -0.01
Fold 5
SR -0.07
TrainTest (out-of-sample Sharpe shown)
Metrics
CAGR
2.7%
Ann. volatility
4.0%
Sharpe
0.69
Sortino
1.02
Max drawdown
-5.9%
Calmar
0.46
Hit rate
52.9%
Turnover / yr
2.7×
Exposure
46%
Deflated Sharpe1 trial
P(true SR > 0)
94%
Prob. of overfit
6%

Expected best Sharpe from luck after 1 try: 0.00. Every slider change counts as a trial.

Costs
Sharpe, no costs
0.72
Cost drag / yr
0.14%
Bias checks
  • No bias warnings for this configuration.
Experiments