Overfitting occurs when systems become too complex. It is pos-
sible to add rules to a system that will improve its historical per-
formance, but that happens only because those rules affect a very
small number of important trades. Adding those rules can create
overfitting. This is especially true for trades that occur during crit-
ical periods in the equity curve for the system. For example, a rule
that lets you exit a particularly large winning trade close to the peak
certainly would improve performance but would be overfit if it did
not apply to enough other situations.
I have seen many examples where system vendors have used this
technique to improve results of their systems after a period of relatively
poor performance. They sometimes sell the new improved systems as
plus or II versions of their original systems. Anyone contemplating a
purchase of a system “improved” in this matter would do well to inves-
tigate the nature of the rules which constitute the improvements to
make sure that they have not benefited from overfitting.
I often find it useful to look at examples of a phenomenon taken
to the extreme to understand it better. Here I will present a system
that does some pretty egregious things that overfit the data. We will
start with a very simple system, the Dual Moving Average system,
and add rules that start to overfit the data.
Remember that this system had a very nasty drawdown in the last
six months. Therefore, I will add a few new rules to fix that draw-
down and improve performance. I am going to reduce my positions
by a certain percentage when the drawdown reaches a particular
threshold and then, when the drawdown is over, resume trading at
the normal size.
To implement this idea, let’s add a new rule to the system with
two new parameters for optimization: the amount to be reduced and
Lies, Damn Lies, and Backtests • 173