Basi 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.
La risposta più rapida è un test
La maggior parte delle domande "X funziona?" si risponde empiricamente in un minuto — su dati reali, con controllo out-of-sample, gratis.
Backtesta una strategia gratisAltro su questo tema
Contenuto educativo, non consulenza finanziaria. Le cifre da backtest e storiche descrivono solo periodi passati; i rendimenti passati non garantiscono risultati futuri.