Overfitting

Backtesting Shows 80% Win Rate, Live Is 50% — The Overfitting Trap

Updated 2026-07-26 · 6 min read

▶ Backtest on Clean, Unseen Data →Free forever · Bar-by-bar replay · No lookahead
You did not find a holy grail. You did not discover a secret edge nobody else knows. What you did — what almost every trader does at least once — is overfit your strategy to historical data. The 80% win rate is real on the data you tested. It is imaginary on everything else. Here is how it happens, how to detect it, and how to produce backtest numbers you can actually take to a live account.

What Overfitting Actually Is — The Simple Explanation

Imagine you are shown 100 photos of dogs and cats and asked to write rules for telling them apart. If you write broad rules — "dogs have longer snouts, cats have pointed ears" — you will do OK on new photos. But if you write rules so specific that they describe only those exact 100 photos — "photo #3 had a brown spot on the left ear, so brown spots mean dog" — you will fail on every new photo. That is overfitting: your rules are so specific to the training data that they do not generalize to anything else.

In forex terms: you backtest a strategy on January 2023 through December 2024. You add a 20 EMA, then an RSI filter, then a session-time filter, then you exclude "that weird week in March." Each adjustment makes the backtest look better — but each tweak is you writing a "brown spot" rule. The strategy now describes what already happened, not what will happen next.

How Overfitting Sneaks In — 5 Ways You Do It Without Realizing

1. Indicator Shopping

You test EMA 20 — win rate is 48%. Try EMA 50 — 52%. EMA 100 — 55%. EMA 200 with RSI 14 — 62%. You keep adding and tweaking until the number turns green. Every time you test a new parameter and pick the best one, you are overfitting. You ran 10 variations and kept the winner — but by pure chance, one of those 10 will look better than the others even if none of them have a real edge.

Real Example

A trader on r/Forex tested 6 different moving average periods on EURUSD M15, picked the one that gave 65% wins, and went live. The strategy lost for 3 weeks straight. He had not found the "right" MA period — he had run 6 coin flips and picked the lucky one. If he had tested on out-of-sample data, that same MA period would have shown 48%.

2. Exclusion Bias — "That Week Does Not Count"

Your backtest shows a -8% drawdown in the second week of March. You look at the chart: "Oh, that was NFP week. My strategy does not trade news. I will exclude that week." Now the drawdown is -4%. Better. Then you exclude a random Monday gap. Now -2.5%. Each exclusion feels justified, but collectively you have removed every scenario where your strategy failed — leaving only the scenarios where it works. You have not improved the strategy. You have hidden its weaknesses from yourself.

3. The 20/20 Hindsight Entry

You are bar-by-bar replaying EURUSD. You see a bullish engulfing candle forming. You think "this looks like an entry." Then you advance the next candle and it rips +30 pips. You count it as a win. But did you actually enter before seeing the result? If you are replaying with the full chart visible, your brain already knows where price went — and you will unconsciously filter out the setups that failed. Bar-by-bar replay where you cannot see the next candle is the only defense against this. Even then, you must write your entry decision before advancing.

4. Adding Filters After Seeing Losing Trades

You have 200 backtested trades. You notice that 8 of the 12 biggest losers happened between 8-10 AM London time. You add a filter: "No trades between 8-10 AM London." Now your win rate improves from 55% to 64%. But you just removed 12 data points from a sample of 200 — a 6% change — based on a pattern that could easily be random. With 200 trades, a cluster of 8 losing trades in a specific time window is statistically unremarkable. You filtered noise and called it a rule.

5. The Parameter Explosion

Your final strategy uses: 50 EMA, 200 EMA, RSI 14, ATR 14 stop, session filter (London only), day-of-week filter (no Mondays), and a minimum ADR filter of 60 pips. That is 7 parameters. Each one was tuned individually, and the combination was never tested as a system on unseen data. The probability that all 7 parameters are independently useful — rather than collectively memorizing a specific slice of historical data — is vanishingly small.

How to Know If You Overfitted — The Out-of-Sample Test

The only reliable test: split your historical data into two sets. Use the first 70% to develop your strategy. Do not look at the remaining 30% until your strategy rules are completely locked — written down, no further changes allowed. Then run your backtest on that 30%.

The overfitting rule of thumb: If your out-of-sample win rate drops by more than 20% relative to your in-sample win rate, you overfitted. If your in-sample shows 60% and out-of-sample shows 52% — that is acceptable (still profitable with good R:R). If in-sample shows 80% and out-of-sample shows 45% — you built a strategy that memorized the past, not one that trades the future.

The Walk-Forward Alternative

A more rigorous approach used by quant traders: split data into consecutive periods. Optimize your strategy on Period A (Jan-Jun 2023). Test on Period B (Jul-Dec 2023). If Period B passes, keep the rules exactly as-is and test on Period C (Jan-Jun 2024). Repeat. If performance degrades over successive walk-forward windows, you are overfitting. This is tedious — but it catches overfitting that a single out-of-sample split might miss.

How to Build a Strategy That Does Not Overfit

  1. Start with 1-2 parameters maximum. A 50 EMA trend filter and a support/resistance entry rule has 2 degrees of freedom. An 8-indicator ICT SMC strategy has 15+. Start simple.
  2. Lock rules before backtesting. Write them on paper. "Entry: price touches 50 EMA from above, RSI below 30, bullish pin bar on M15." Do not change these rules after seeing results. If you want to test a variation, start a new backtest from scratch.
  3. Do not exclude losing periods. If your strategy fails during news, it is not a news-proof strategy. If it fails on Mondays, it is not a Monday-proof strategy. The market includes news and Mondays. So should your backtest.
  4. Use bar-by-bar replay without future visibility. A tool that hides the next candle forces you to make decisions with only the information available at the time — the same information you will have live.
  5. Accept that a realistic win rate is 40-60%. A strategy showing 80%+ is almost certainly overfitted. The best discretionary traders in the world operate in the 40-60% range with asymmetric R:R (1:2 or higher). If your backtest shows 80%, treat it as suspicious, not exciting.

Backtest Without the Hindsight — Bar-by-Bar, Free

FXAbsolute replays candles one at a time so you cannot see what comes next. Out-of-sample test on 5 years of real data. Your win rate will be honest — maybe lower than you want, but real.

▶ Start Free Backtesting →
10 forex pairs · 5 years M15 data · Free forever · No sign-up