Repository navigation
TokIO 0.5.0: is your backtest real?
Is your backtest real? 0.5.0 turns TokIO into a backtest checker.
check_backtest: HAC test of the mean, Romano-Wolf correction for every variant tried,
haircut Sharpe, costs and breakeven cost, probability of backtest overfitting.- Deflated and Probabilistic Sharpe Ratios and the minimum track record length, as
published and corrected for dependence. The published PSR passes 38% of zero-edge
strategies on overlapping trades; the corrected one holds 4-8%. - Lookahead check: re-runs positions one bar later.
- Works directly on vectorbt, backtesting.py and TradingView trade exports; Pine Script
table for the TradingView chart. pip install tokio-ainow needs only numpy; the research agent istokio-ai[agent].
Full list in CHANGELOG.md. Try it in Colab: examples/check_your_backtest.ipynb.