Skip to content
← Learning hub
Research Methods / Tutorial

Before the backtest: audit the data

Inspect timestamps, revisions, price adjustments and historical universe membership before interpreting a result.

Edge Quant editorial · 28 October 2026 · About 4 minutes

A clean CSV can still contain information that was unavailable at the time, an inconsistent price convention or a universe selected with hindsight.

By the endCreate a data contract that records what an observation means and when it became usable.

Keep three timestamps separate

For each input, distinguish the period it describes, the time it was released and the time your system received it. A January economic observation might first appear in February and change again in March. Joining the final value onto every January trading day would answer a different question from trading with the first available release.

ALFRED, from the Federal Reserve Bank of St. Louis, preserves historical vintages of economic series. Its vintage dates help investigate what a series looked like at a past point in time. They do not by themselves supply your trading system’s intraday receipt timestamp.

Choose a price convention

Record whether a field is a transaction price, bid, ask, midpoint, settlement or adjusted close. A split-adjusted series can help calculate consistent historical returns, but it should not silently replace the actual executable prices and quantities in an order ledger. Dividends, splits and futures rolls require explicit treatment.

Audit questionWhy it changes the experiment
Which time zone defines a session?The same timestamp can land in different daily bars.
Are missing bars absent or forward-filled?A filled value can look like a fresh observation.
Are discontinued instruments included?Today’s surviving universe can hide historical failures.
What do missing-value codes mean?A sentinel such as −999 must not become a financial return.
Is a futures series continuous or contract-specific?A research series may not represent a directly tradable contract.

A real example: a data library can change

The Kenneth French Data Library documents a move from CRSP’s FIZ files to CIZ beginning with the January 2025 release, including a different dividend-reinvestment convention. It also provides historical archives. This is a reason to save a download date and data version, not a reason to assume all datasets share the same construction.

Write a small data contract

Before a run, record the provider, retrieval time, instrument identifiers, units, timestamp meaning, adjustment policy, missing-data policy, universe definition and permitted use. Keep the raw snapshot separate from transformed inputs. Store a checksum when practical so another run can identify whether the underlying file changed.

Audit one suspicious row

Choose a price jump, a duplicate timestamp or an unexpectedly large return. Trace it to the raw file and provider notes. Decide whether it is a real observation, an adjustment, a roll or an error. Document the decision before correcting anything; deleting an inconvenient point without a reason can change the result.

Primary references

References reviewed 28 October 2026. Original exercises and project-specific observations are identified separately.

Keep exploring

Download the data-audit worksheet ↗

Educational engineering and research guidance. Examples do not establish a profitable or live-ready trading strategy.