Skip to content

TokIO 0.5.0: is your backtest real?

Choose a tag to compare

@Kuzi-DEV Kuzi-DEV released this 07 Oct 23:08
· 38 commits to main since this release
2bd643a

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-ai now needs only numpy; the research agent is tokio-ai[agent].

Full list in CHANGELOG.md. Try it in Colab: examples/check_your_backtest.ipynb.