Skip to content

Forecasting

Backtesting Done Right: Walk-Forward Testing Without Look-Ahead Bias

MarketLens Editorial · 12 Oct 2026

Backtesting asks: if we had used this model in the past, how wrong would it have been?

The leakage trap

Randomly splitting time-series data lets a model "see" the future. Results look great and mean nothing.

Walk-forward testing

MarketLens repeatedly picks a past date (the origin), fits each model only on data up to that date, forecasts h sessions ahead, and compares with the real price later observed. The origin then moves forward and the process repeats.

Metrics we report

  • MAE — average absolute error in price terms.
  • RMSE — penalises large misses more heavily.
  • Directional accuracy — how often the forecast direction matched reality.

We always compare against the naive random-walk model. If a fancy model cannot beat "tomorrow equals today", you should know.

Risk notice: Forecasts are uncertain statistical estimates. Scenarios are algorithmic outputs, not investment advice. EatoRush MarketLens is not SEBI-registered. See the Risk Disclaimer.

Related articles

Analyse any instrument with transparent forecasts

One payment of ₹4,999. Lifetime access. Unlimited forecasts. No subscriptions.