How look-ahead bias enters a test
A backtest has look-ahead bias when an earlier trigger depends on a later observation. Common causes include using a full-day high before the day ended, joining data by the wrong timestamp, or using a revised report as if the revision were known earlier.
How to prevent it
Evaluate every input in timestamp order and record when it became observable. Freeze the trading strategy before opening the holdout period. Tests, code review, and manual trigger inspection should confirm that future records cannot change an earlier decision.