Noon Barbari

Fundamentos del backtesting

What is lookahead bias in backtesting?

Lookahead bias is when a backtest uses information that would not have existed at the moment of the decision — the strategy "peeks" at the future. Classic examples: acting on a candle's close before the candle has closed, using an indicator computed over the full dataset, or entering at a day's low that was only knowable in hindsight.

It inflates results silently and is entirely an engine-quality issue: an event-driven backtester that feeds the strategy one bar at a time, with indicators warmed up incrementally, makes lookahead structurally impossible rather than something you have to remember to avoid.

Lookahead bias (glossary)Backtesting docs

La respuesta más rápida es una prueba

La mayoría de las preguntas "¿funciona X?" se responden empíricamente en un minuto — con datos reales, control out-of-sample, gratis.

Backtestea una estrategia gratis

Más sobre este tema

Contenido educativo, no asesoramiento financiero. Las cifras de backtest e históricas describen solo periodos pasados; el rendimiento pasado no garantiza resultados futuros.