Day 135 — Two timestamps per row, and the lag between them
Saturday, 19 December 2026 · Week 20 of 52 · The research harness · Study day · 65 min
The store already carries an ingestion time, but the signal path does not use it, and a lag convention that lives in your head is one you will violate the first time you write a new signal.
What you should be able to do tonight
- State your lag convention explicitly: what is known at what time, and when a position computed from it can first be held.
- Show what a one-day error in that convention does to your pairs strategy’s Sharpe.
Tasks 65 min
30 min Write the convention down as a table: for each data source, the timestamp of the observation, the timestamp of availability, and the first session in which a position derived from it can be held. Then encode it as a per-source lag in the store rather than as a shift in each notebook.
25 min Measure the sensitivity: run your pairs strategy with the correct lag, with no lag, and with two days of lag. Report the three Sharpe ratios. The no-lag version will look substantially better, and the size of that gap is a measure of how much of your result is timing rather than signal.
10 min Add an assertion to the signal path: any position series must be derivable from data whose availability timestamp precedes the session it is held in, checked rather than intended.
Resources
Deliverable
A per-source lag table encoded in the store, and three Sharpe ratios showing the strategy’s sensitivity to the convention.
Checkpoint
Your signal uses the close and your backtest holds from that close. What is wrong, and how much was it worth?
Prepare for tomorrow
Ten minutes tonight so Day 136, Sunday, 20 December 2026 starts clean. This is what the evening email sends you.
Find one source of historical index membership, free or through WRDS, and write down what it costs and what it covers.
If there is none available to you, note that as a constraint rather than working around it silently.
List the ways you could approximate a point-in-time universe without membership data. There are two reasonable ones.