Systematic Trading Field Guide
1.10 · The research process

Running a research programme

~9 min read
Mechanism

You are both the researcher and the referee, and the researcher cheats. The only defence is procedure that binds your future self: write the hypothesis and kill criteria before touching data, count every variant you run as a trial against your significance budget, and keep a graveyard of dead ideas with causes of death. A solo trader without this discipline isn't running a research programme — they're running a random-number generator with extra steps.

The idea

There's a famous result in the backtesting literature that deserves to be framed above your desk. Bailey, Borwein, López de Prado and Zhu (Bailey, Borwein, López de Prado & Zhu 2014) showed that if you try enough strategy configurations on the same data, you are mathematically guaranteed to find one with an excellent in-sample Sharpe ratio even when no configuration has any skill at all — and the number of trials needed is embarrassingly small. Random variations on a meaningless signal will hand you a Sharpe above 1 within a few dozen attempts. Your framework, which can sweep a parameter grid over lunch, is a machine for performing hundreds of such trials — which means it is, unsupervised, a machine for manufacturing false discoveries at industrial scale.

Academic finance has the same machine and the same incentives, which is why Campbell Harvey — after cataloguing hundreds of published factors and concluding half may be false (Harvey, Liu & Zhu 2016) — used his Presidential Address to the American Finance Association (Harvey 2017) to argue that the field's standard research practices amount to p-hacking with a literature review. His indictment of professional researchers reads, uncomfortably, as a description of any solo quant on a Saturday: try specifications until one works, remember the winner, forget the attempts, and sincerely believe the winner was your hypothesis all along. The mind rewrites history in favour of the surviving curve. You will not fix this by intending to be honest. You fix it the way every mature experimental field fixed it: with procedure — the lab notebook, the pre-registration, the trial count — externalised where your future self can't edit it.

The good news: you have an unfair advantage over the academics. You don't need to publish, impress a referee, or produce a positive result on a tenure clock. Your only customer is your own P&L, which means you can afford the luxury academia struggles with — a research process where most results are negative and that's fine. The three instruments:

Pre-registration. Before the first line of backtest code for an idea, a short document exists: the mechanism sentence (lesson 1.3's form), the funnel-gate answers (lesson 1.8), and — critically — the exact test to be run: universe, period, one specification, the statistic that counts as success, and the kill criteria (both the statistical one, "t below X", and the mechanistic one, "the payer stops paying when Y"). The document is committed to git before the result exists. The commit timestamp is the whole point: it's the one witness you can't sweet-talk afterwards. This isn't bureaucracy — it's a gift to future-you, who will otherwise stand in front of a seductive equity curve unable to remember what they originally believed.

Counting every variant. Multiple-testing corrections (lesson 2.3) take a number as input: how many trials produced this result? Most researchers can't supply it because they never counted. You will: every backtest run against an idea's data gets a row in a trial ledger — timestamp, spec hash, headline stat. The definition of "trial" is uncomfortable and must be: any variation you evaluated and would have kept had it looked good. The lookback you "just tried quickly," the universe filter you toggled, the version with the crisis year excluded — all trials. If the framework ran it and you saw the number, it counts. The engineering version of this is cheap: have the backtest runner itself append the row automatically, so the count doesn't depend on your morning's integrity. (López de Prado's book (López de Prado 2018) builds a whole methodology on taking the trial count seriously — the deflated Sharpe of lesson 2.3 consumes it directly.)

The graveyard. A file of dead ideas, each with a one-line cause of death: "no counterparty," "pot under £5k," "dies at 10bp costs," "needs point-in-time fundamentals I can't get," "t = 1.1 on the pre-registered test." Three services. It stops re-litigation — dead ideas re-present themselves every eighteen months wearing new clothes, and the graveyard recognises them. It accumulates transferable artifacts — capacity estimates and cost lines outlive the ideas that produced them (lesson 1.8). And, read annually, it teaches you your own failure statistics: if 80% of your deaths are at the mechanism gate, your sourcing is undisciplined; if most are at the backtest gate, your earlier gates are too generous — you're spending trials on ideas the funnel should have killed for free.

Anchor the numbers in your head: a good research programme kills the overwhelming majority of its ideas, most before any backtest, and produces perhaps one or two deployable strategies a year. If your kill rate is much lower, you aren't discovering more edges than the professionals — you're testing less honestly.

The maths

Only one formula, but it reframes everything. If you evaluate NN independent worthless strategies, the expected best in-sample Sharpe among them grows like

E[SR^max⁡]  ≈  2ln⁡NT\mathbb{E}[\widehat{SR}_{\max}] \;\approx\; \sqrt{\tfrac{2\ln N}{T}}
Approximate expected maximum Sharpe among N independent zero-skill strategies over T years of data (from the theory behind the deflated Sharpe ratio). The point is the shape: the noise ceiling rises with every trial you run.

With T=10T = 10 years of data and N=45N = 45 trials, the expected best zero-skill Sharpe is already about 2ln⁡45/10≈0.87\sqrt{2\ln 45/10} \approx 0.87 — run 45 honest variations of a worthless idea and the best one typically backtests near Sharpe 0.9. That's the noise floor your surviving result must clear, it rises every time you touch the data, and you cannot know where it is unless you counted. The trial ledger isn't hygiene; it's a term in the formula.

Worked example

Worked example — a pre-registration and an honest trial count

The template, filled in for a real idea (the fallen-angel ETF question the funnel produced in lesson 1.8):

# idea-023: fallen-angel ETF rebalance pressure
date-registered: 2026-08-02        # git commit is the witness
source: EJL 2011 (JFE); funnel doc idea-023-funnel.md
mechanism: bucket-2 constraint — IG-mandated holders must sell
  downgraded bonds; index-tracking FA ETF buys on schedule.
hypothesis: bonds entering the FA index underperform into entry
  and revert over the following 8-12 weeks, net of duration.
test: universe = FA index entrants 2012-2024; event study around
  entry date; duration-hedged excess return, weeks -4..+12.
  ONE specification. Success: mean reversion window return > 0,
  t >= 3.0 (Harvey-Liu hurdle, lesson 2.3).
kill-stat: t < 3.0 on the registered spec => graveyard, no retuning.
kill-mech: index methodology change, or FA ETF AUM doubles
  (concession likely competed away).
trials-budget: 1 registered + 2 declared robustness (weighting,
  sub-period halves). Anything else counts against the idea.

And the ledger after the work, appended automatically by the runner:

#datespecheadlinenote
108-10registeredt = 3.4pass
208-10equal-weight robustnesst = 3.1consistent
308-112012–2018 halft = 2.6weaker, declared
408-112019–2024 halft = 2.2weaker — decay? flag to 1.11

Four trials, all declared in advance: the t = 3.4 keeps close to its face value. Now the counterfactual that shows what the procedure bought you. Without pre-registration, a typical session on the same idea tries five lookback windows, three universes and two hedging schemes before "settling" on the best — thirty-odd effective trials. Against thirty trials on ten years of data, the noise ceiling from the formula sits near Sharpe 0.8, and a t of 3.4 on the survivor of that search is worth far less than the same number on trial one — the deflated Sharpe of lesson 2.3 makes the discount exact. Same data, same code, same result on screen; only the process differs, and the process is what decides whether the number means anything.

How you'd use it

Concretely, as repo structure — this should live where your framework lives, versioned the same way:

  1. research/ideas/idea-NNN.md — pre-registration per idea, committed before the first run. The funnel doc (lesson 1.8) is usually the same file's first half.
  2. research/trials.csv — appended by the backtest runner itself, not by you: run timestamp, idea id, spec hash, headline stats. Non-optional plumbing; the deflated-Sharpe input of lesson 2.5 reads straight from it.
  3. research/graveyard.md — one line per dead idea, cause of death, link to its artifacts. Reviewed once a year for your own failure statistics.
  4. A weekly cadence beats a heroic one. Two disciplined evenings a week with pre-registered tests will outperform a monthly weekend binge of freestyle backtesting by a margin the formula above can quantify.
  5. Declare robustness checks in advance and give them a budget (two or three, named in the registration). A robustness check invented after seeing the result is a trial like any other — usually a search for confirmation.

What goes wrong

HARKing — Hypothesising After the Results are Known, the failure Harvey's address (Harvey 2017) centres on. You run variants, one shines, and your brain — instantly, sincerely — furnishes the mechanism it "predicted." The pre-registration commit is the only evidence that can contradict the rewrite, which is precisely why it must exist before the result does. If you catch yourself editing a registration file after a run, stop: that document is now the ledger's problem, and the edit is itself data about you.

The quick look. "I'll just eyeball one variation before registering anything." That look is a trial: you saw the number, and it will steer what you register — the registered hypothesis is now downstream of the data it claims to predict. The only clean sequences are register-then-run, or run-then-count-everything.

Ledger decay. Manual trial counting survives about two weeks of enthusiasm. If the runner doesn't log automatically, the count will drift toward flattery — silently, and worst during your most productive (most trial-heavy) stretches, which is exactly when the ceiling is highest.

Graveyard resurrection without new evidence. An idea killed at t = 1.1 gets exhumed a year later because you "have a feeling" — and the new test's trials silently pile onto the old ones, since it's the same data and the same family of specifications. Resurrection needs new information — a new mechanism, new data, a regime change — and the old trials still count against the family. The multiplicity is per-idea-family over your whole career, not per-session; that's the uncomfortable arithmetic lesson 2.3 formalises.

Procedure theatre. The failure mode of the converts: a beautiful registration system wrapped around tests that were quietly chosen after exploratory peeking, robustness budgets that expand when results disappoint, a trials file that only logs "serious" runs. The forms are cheap; what they're protecting is a single number — the honest count of looks you've had at the data — and every exception you grant yourself is a corruption of that number. When in doubt, count it.

Further reading