cleoanka
TR

work with me · causality audit

Can your backtest see the future?

When a backtest looks too good, the first question is this: does the strategy use data that was not yet known when it made the decision? I audit the code and the data pipeline for exactly that: look-ahead bias.

Not investment advice; no signals. The audit is about method and code; it does not say whether a strategy will make money.

Scope, duration and price

Light

$450

100% upfront · 5 business days · one strategy, up to ~500 lines of Python

  • All of the checker’s tests: truncation invariance, lag stress, future shuffle
  • Six lint rules: negative shift, centred window, fit on the whole frame, backfill, trading on the same bar’s close, resampling without explicit labels
  • A manual read-through of the code: the paths the tests cannot see

Delivered: a written report.

Full

$1,200

50% upfront · 10 business days

  • Everything in the light package
  • The data pipeline: where the data comes from and what was known at which moment
  • Agent tools, if there are any: whether an LLM agent can reach the future through its tools
  • A deflated Sharpe ratio, corrected for the number of trials

Delivered: a report you can reproduce with one command.

Not included

There are things automated tests cannot catch: a data vendor’s after-the-fact revisions, survivorship bias, and information leaking through agent tools. In the full package I read the pipeline and the tools by hand; but no test rules these out for certain, and the report says so plainly.

Try the free checker first: the Causality Court checker runs in your browser, and your code and data never leave your device. The Court essay explains why this matters; the look-ahead bias note shows the structure kairos builds against it, and the kairos lab page lets you play with it.

Sample report

Sample; not a real client.

Indictment: the deliberately rigged sample strategy

The audited code is the deliberately rigged strategy that the checker’s “Load the rigged sample” button opens; the prices are synthetic (1,500 daily bars), with no real market or client. Every number below is taken from the checker’s output on this sample; run the checker on the same sample to see it yourself.

  1. guilty Truncation invariance

    At 50 of the 50 cut points tried, the signal computed on truncated data differs from the one computed on the full data: the strategy sees the future. At the first cut point (bar 150), the leak starts at bar 145; the largest difference in the signal is 1.0. The leak is traced to line 15: trend = close.rolling(20, center=True).mean().

  2. guilty Lag stress

    Without a shift the annualised Sharpe is 18.47; delayed by one bar it is −0.27. The return collapses at a one-bar delay; a real edge is not this sensitive to one bar of lag.

  3. guilty Future shuffle

    When the rows after a cut point are shuffled, the signal before that point changes at 8 of 10 cut points.

  4. LINT shift-negative

    Line 10, inside a helper function: return np.sign(close.shift(-1) - close). The next bar’s close flows into today’s signal.

  5. LINT rolling-center

    Line 15: a centred mean with rolling(20, center=True); about half of the window lies in the future.

  6. info Deflated Sharpe

    Not computed, because no trial count was given; in a real audit we establish together how many variants were tried.

Not investment advice; no signals.

To start

I am taking calls now; I can invoice from January 2027. Payment is by invoice, in USD, through Payoneer or a SWIFT bank transfer.

Draft a brief All packages