Is it real,
or is it luck?
TokIO tells you whether a strategy's profit is distinguishable from luck, once you allow for what a Sharpe ratio hides: P&L that isn't independent from bar to bar, and every variant you tried before this one. Every test it runs has a measured false-positive rate.
$ pip install tokio-ai
Real daily SPY data. The in-sample winner did worse than a random pick out of sample in 90% of splits.
Your terminal.
With a skeptic built in.
Ask in plain English. The agent pulls the data, runs the test, and logs every attempt in the session ledger, so the ones that failed still count against the one that worked.
Use it where you work.
In your notebook
Hand it a vectorbt Portfolio (a whole grid included), backtesting.py stats, or a P&L series.
import tokio_ai print(tokio_ai.check_backtest(pf))Open the Colab →
In Claude Code
An MCP server: ask the assistant to test an idea and it checks the result before it tells you it works.
The plugin →On your chart
Paste one Pine v6 script under any strategy and the verdict appears as a table on the chart. No export needed.
tokio_check.pine →We test the tester.
How often does each method call a strategy with no edge profitable? At p < 0.05 it should be 5%. We measured it, including on 20 years of real data, and published the table.
The full study, including what broke →What every result reports.
check_backtest()Corrected for every try
A test of the mean that allows for serial dependence, corrected for every variant you tried (Romano-Wolf step-down).
DSR · PSRDeflated Sharpe
The Deflated and Probabilistic Sharpe Ratios, as published and corrected for dependence, plus the minimum track record.
PBOOverfitting odds
The probability of backtest overfitting (CSCV) for grids: how often the in-sample winner loses out of sample.
costs=Costs and breakeven
Costs, turnover, and the transaction cost at which the edge disappears.
lookaheadCatches peeking
The Sharpe with every position taken one bar later. A cheating SPY strategy drops from 13.26 to −0.44.
robustnessNot one lucky stretch
Concentration with both tails trimmed, consistency across time, and the minimum backtest length.
Build it with us.
Star the repo
MIT licensed. Read the code and the calibration study.
IssuesReport a bug or idea
Including a template for a statistical concern, if you think a test is wrong.
Community server
Coming soon: tickets for bugs, feature requests and feedback.