OHLC data quality and validation
Core concept
A backtest is only as reliable as its data and assumptions. OHLC records must be chronological with consistent price units.
Worked example
Open 101, high 104, low 98, close 102 is internally consistent; high 100 with open 101 is not.
Practice task
Check missing sessions, duplicated rows, corporate actions, time zones and contract rolls before testing.
Limitations
Daily OHLC cannot establish intrabar order or reconstruct bid/ask order flow.
