Your best optimization pass may be luck: 7 overfitting checks before you trust an EA setting
You ran the optimizer, sorted the results by profit and opened the top pass. The curve climbs without a single bad month. Or you skipped the optimizer and downloaded a set file from someone who did exactly that.
Either way, you are looking at the winner of a contest. The question is whether it won on skill or on the draw. Keep one sentence in mind: a result only counts on data that did not help choose it.
The best of a thousand passes
Take a thousand coins and flip each one ten times. One of them will quite likely land heads ten times in a row. It is not a better coin. It is the luckiest of a thousand, and on the next ten flips it behaves like every other coin.
An optimization with a thousand parameter combinations is the same draw. Each pass is a coin. The top pass may hold a real rule, or it may have caught the right flips in that history: the news spike, the Monday gap, the week gold moved twice its usual range. More inputs, more values per input and more noise in the period all make the luckiest pass luckier. Only data the optimizer never saw tells the two apart.
7 checks before you trust a setting
- The curve is perfect. Years without a losing month or a losing streak. Real markets have bad months. Check: the month-by-month result, not only the total.
- Many inputs, few trades. Dozens of parameters fitted on a few dozen trades can fit anything. Check: count the inputs on the Inputs tab and the trades in the report.
- A different set file for each year or period. If 2023 needs one file and 2025 another, the rule was fitted to each slice instead of holding across them. Check: run one file on a period it was not built for, without touching it.
- A short or hand-picked period. Only the good year is shown, or the test starts right after the worst month. Check: ask for the years that were left out, the weak ones included, or run them yourself.
- An isolated peak. One value of an input wins big and its neighbors lose. A real rule usually sits on a plateau: nearby values also work. Check: in the optimization results, read the optimization graph around the best value, or move each input one step each way and run again.
- Profit that rests on a handful of trades. Remove the biggest wins and the rest does not pay for itself. Check: sort the list of deals by profit and redo the sum without the top few.
- The gap between the chosen years and the rest, or silence about it. Earning less outside the period the inputs were chosen on is expected: markets change, and the chosen slice always had the advantage of being seen. The signal is the size of that gap. Worse is when the years outside are simply not shown. Check: put the years inside and outside the choice side by side, each starting from the same deposit, and judge the gap yourself.
The tests, side by side
| Test | What it catches | How to run it in MT5 |
|---|---|---|
| Out of sample | A rule that only holds on the slice it was chosen on | Choose on one period, check on another, change nothing |
| Tester Forward | The same, on the end of the period | The Forward field (1/2, 1/3, 1/4 or "Custom" from a date); results on the Forward tab |
| Walk forward | A rule that only holds in one market phase | Consecutive windows: choose, check, move the window, repeat |
| Neighboring inputs | The lucky peak | Move each input one step and rerun |
| Your broker, real costs | A fit to one broker's prices | Your account's symbol, with every tick based on real ticks |
| Demo account, live | What no history shows | Run it for weeks on a demo |
Walk forward lowers the risk of overfitting; it does not remove it. Run enough walk-forward variants and keep the best, and you are flipping coins again.
The full guide on our site goes further, with the questions to ask a seller, figures and an FAQ: overfitting in trading: 7 signs your EA fits only the past.
The years outside the choice, on our pages
Check 7 needs one answer from the seller: in which years were the inputs chosen? Doberman Gold's page gives it in writing: its settings were chosen looking at 2025 and 2026, and 2023 and 2024 are the years outside that choice.
In the test with real ticks, Balanced profile, each year restarting from the same deposit: +126% in 2026 (to November 8) and +162% in 2025, inside the choice; +56% in 2024, with a drawdown of 14% on equity (12% on balance), and -14% in 2023, with a drawdown of 32% on equity (30% on balance), outside it.
The page explains the difference: gold moved far more in 2025 and 2026, and within each year the automatic lot follows the balance. It also calls 2025 and 2026 exceptional years, not a rate to project forward. No test proves a rule memorized nothing; a page can show what was left out and let you judge.
On all our pages, choosing the profile is the whole setup and there is no set file to download, so check 3 has nowhere to happen, and each year restarts from the same deposit, so one year can't hide another.
- Doberman Gold on the Market: the years of the choice and the years outside it, the weak one included.
- Cane Corso Gold on the Market: a portfolio of strategies, with its weak stretches of 2023 and 2026 on the page.
- Collie Gold, Pitbull Gold and Beagle Gold on the Market: year by year, the weak years included.
The best overfitting test is the one you run yourself. Download the free demo, run the years outside the choice on your broker's data with real ticks, and compare them with the page.
Lucky Dogs Trading Systems


