How to Avoid Overfitting an Order Flow Strategy
A strategy that works perfectly on historical charts deserves extra scrutiny.
Overfitting happens when a strategy is tailored too closely to past data and fails to generalize to new market conditions.
For example, you might keep changing footprint imbalance settings until historical entries appear almost perfect.
But those settings may simply fit the sample you studied.
To reduce this risk, define the strategy logically, test it on data not used to develop it, and account for execution costs.
Also examine different market environments rather than relying on one unusually favorable period.
A realistic strategy will experience losses and imperfect entries.
The objective is not to create a flawless historical chart. It's to determine whether the approach has a robust, repeatable edge.