The more a curve can bend, the closer it fits the old points and the wilder it gets between them
Suppose you hang 1 to 10 weights on a spring, one more each time, and write down how many centimeters it stretches. The spring really stretches one centimeter for each weight, but each reading of the scale is a little off. So the ten readings, drawn as points, lie roughly along a sloping line, each a little above or below it. Fit a straight line to the ten points and it misses each one by a bit, and the misses are exactly the reading errors. A quadratic curve misses by slightly less. A ninth-degree curve has ten coefficients, and ten readings are just enough to pin it down completely: it bends to pass through every point, with zero error.
But the places it passes through carry the reading errors. To satisfy ten points that sit above and below at the same time, it has to swing back and forth between them, and the swings get bigger toward both ends. Hang 9.5 weights and the spring should stretch 9.5 centimeters. The straight line estimates 9.6; the ninth-degree curve estimates 12.4. The higher a curve's degree, the more it can bend, and the more slack it has to chase these chance errors. On the old points the error falls all the way to zero. On new points the error is smallest around the straight line and the quadratic, and rises as the degree goes higher.
The more rules you try, the more chances for one to win by luck
You can overfit without fitting any curve, just by screening rules. Test hundreds of indicators and time windows on the same stretch of history, and a few will match the outcome purely by coincidence. The short rule you end up keeping looks simple, but there are hundreds of attempts behind it.
Independent data can check a model only once
Build the rules with one part of the data, choose between options with another part, and finally keep back a set nobody has touched to check the result. When predicting the future, the checking data should come from a later time than the data the model was built on; only then is it like predicting something that hasn't happened yet. Every time you look at the check score and go back to change the rules, the checking data turns into practice questions, and you need a new set. Limiting the parameters (such as the curve's degree) and deleting exceptions patched in along the way means chasing fewer chance details. After the changes, check again on a new set of data.
Overfitting is a problem only when you use limited data to infer cases you haven't seen. When all you need is a faithful record of what happened, every detail should be kept. Complexity itself is not the illness: with enough data and the right constraints, a complex model can predict more accurately. When a new system or a new population changes a relationship that used to be stable, predictions fail too, but that is the world changing; the model didn't learn the old samples wrongly. Cut parameters from every complex model on sight, and what you cut may be the real pattern.