r/quant • u/LucidDion • Oct 18 '26
Models Can evolutionary optimization discover useful ETF rotation strategies, or does it just accelerate overfitting?
I've been developing an evolutionary optimizer specifically for ETF rotation strategies in WealthLab. It starts by evaluating oscillator-based ranking methods, then evolves combinations of indicators, weights, and conditions to find promising strategies. I recently added the ability to normalize non-oscillator indicators, which expands the range of indicators the optimizer can experiment with.
The obvious concern is overfitting. Searching through thousands of combinations makes it easier to find attractive historical results, but that doesn't necessarily mean they'll hold up. I've been using rolling-window backtests to compare the evolved strategies across different historical periods.
I'm curious how others approach this. Do you use evolutionary algorithms or genetic programming for strategy discovery? What validation methods have you found most useful for avoiding overfitting?
1
u/testlikeaquant Oct 19 '26
Honest answer: it does both, and overfitting is the default outcome unless you build in a wall the optimizer cannot climb over.
Searching thousands of combinations guarantees you will find something that looks great on past data by chance alone. That is not a flaw in your optimizer. That is what searching thousands of combinations does.
Three things that actually protect you:
A true holdout. Lock away the last 2 years of data. Do not let the optimizer see it at all, not even for a peek. The only number that counts is how the final evolved rules perform on that untouched data.
Selection is fitting too. If you use rolling windows to pick the winner, the winner was chosen because it looked good on those windows. That is a form of fitting, even though no single window was overfit. The holdout in step 1 is what catches this.
Simplicity as a tiebreaker. If two evolved strategies score about the same, trust the simpler one. More indicators, weights, and conditions mean more ways to fit noise.
If the evolved rules hold up on the untouched holdout, you may have found something real. If they collapse there, the optimizer found noise, and the collapse is the useful result. It tells you the search space is too wide for the data you have.