Backtesting
The ways a backtest accidentally uses information that wasn't available at the time.
Look-ahead bias is using information from the future. Common versions: using a candle's close to decide a trade that would have been entered before the close; using the session's final POC or high instead of the developing one; acting on a higher-timeframe candle that hadn't closed yet.
Repainting is when an indicator's past values change after the fact: ZigZag, some fractal and pivot tools, Heikin-Ashi, and lower-timeframe-based footprints can all look better in hindsight. Survivorship bias is testing only the instruments that still exist (common with stocks), which hides the ones that failed. Hindsight labelling, deciding afterwards which swing was the 'real' order block, is the manual version of all three.
Put it into practice: Replay the market and test it in UNFLD's backtester →
For education only, not financial advice.