Method

Every check the tool runs, with its assumptions and limits. If something here looks wrong to you, tell us: hello@botgauntlet.com.

Unit of analysis

Trades on the same UTC date are averaged into one number. All tests then work on these date means, not on individual trades, because trades on the same day are not independent.

Locking

The lock file stores the sha256 of your protocol file, your trades file and the script itself. On every run the tool recomputes them and refuses to run on any mismatch. A lock cannot be overwritten. It proves the files did not change after the lock; it does not prove the protocol was a good one.

The eight criteria (defaults)

  1. Enough dates. At least 50 distinct dates.
  2. t-statistic of date means at least 3.0. Mean divided by its standard error.
  3. Sign-flip p-value at most 0.01. One-sided. Under the null, each date mean is as likely to be positive as negative; the tool flips signs at random 10,000 times and counts how often the average is as high as yours. Assumes the distribution of date means is symmetric around zero under the null.
  4. Mean above zero in the first half of dates.
  5. Mean above zero in the second half. One split is a weak check; it catches results that live in only one period.
  6. Median of date means above zero.
  7. Mean above zero without the 3 best dates. Catches results carried by a few lucky days.
  8. Mean above zero after an extra cost per trade. Default 0.20%. It is one flat number you set, not a model of spread, slippage or fees.

All thresholds live in your protocol file, so you choose them before the lock.

Uncertainty (information only)

95% bootstrap intervals of the mean per date, resampling single dates and resampling whole ISO weeks. The week version is more cautious when neighbouring days are correlated. The tool also prints the smallest true mean it could reliably detect with 80% power (2.8 standard errors, using the wider of the date-level and week-level error; it assumes future data behaves like your sample). These lines are not pass/fail criteria.

Trying many variants

If you tested N versions of a strategy and report the best, p-values are too optimistic. A simple, conservative rule: set the p-value limit in your protocol to 0.01 divided by N, before you lock. The tool cannot know N; you must be honest about it.

What the tool does not check

Measured accuracy

See the table on the home page, the protocol (sha256 0ad4556fb31f898361c54a61e25bcc140deeb7f3940042d509b9df89ab35b760) and the raw results.

About the code

The validation script uses only Python's standard library. Its imports are csv, datetime, hashlib, json, math, os, random, shutil, statistics, subprocess, sys and tempfile. It imports no networking module. (subprocess, tempfile and shutil are used only by the built-in selftest, which runs the tool on its own temporary data.)