Optimize a trading strategy without overfitting

Remove the symbols, hours or directions that make you lose, without overfitting: three objectives, validation over several periods and a virtual journal.

By Ricardo · Founder of ProTradingLabs5 min read

A strategy that wins overall often loses on one symbol, one hour or one direction. Removing those trades is the simplest way to improve your results. It is also the most dangerous: keep removing what lost in the past and you get a perfect history that says nothing about the future.

Not all strategies are equal

In October 2026, Benjamin Deleuze, trader, mentor and partner of ProTradingLabs, tested 100 popular strategies on TradingView and MetaTrader 5. Many ended up losing. Among those that held, he compared a moving average crossover strategy with a divergence strategy: 800 trades and a drawdown close to 14% for the first, 343 trades and a 6% drawdown for the second.

The number of opportunities a strategy detects sets the amount of fees you are going to pay your broker.

More trades do not mean more results. Every trade costs a spread and a commission; a trade that earns nothing on average costs money. In our data, positions under 5 minutes end at −0.41 R on average (see the study).

100 popular strategies tested, the 5 best · Benjamin Deleuze · 22 min · in FrenchWatch on YouTube

The method, by hand

Without a tool, the process takes four steps:

  1. Group your trades by symbol, day, hour and direction.

  2. Spot the groups that lose steadily, not over a single month.

  3. Split the history into periods and check that the group loses on most of them.

  4. Measure the effect of removing it on the total result, drawdown and number of trades kept.

It is doable in a spreadsheet, for one symbol and a few weeks. Over hundreds of trades and several years, it is no longer workable by hand: that is exactly what ProTradingData automates.

What ProTradingData's optimization does

In ProTradingData, optimization analyzes your whole history and looks for the groups of positions that cost you: a symbol at certain hours, on certain days, or in one direction (buy or sell). For each one, it computes what your journal would look like without them.

You first choose an objective:

The three optimization objectivesDemo data
  • Balanced. Only removes groups of losing positions whose removal reliably improves the average ratio. Total profit and drawdown never get worse: this is the most careful mode.
  • Profit. Removes the groups whose removal increases the total ratio, and can stack several, even if the curve becomes more uneven.
  • Drawdown. Aims first at reducing the largest drop, even if it gives up part of the profit, up to 40% at most.

A recommendation that holds over several periods

This is the safeguard against overfitting. Each recommendation is checked on several sub-periods of your history, and shows how many it holds on.

A recommendation validated on 8 of 10 periods: no longer trade GBPUSD at 9, 10 and 11 pmDemo data

Less solid recommendations are flagged as such:

  • Emerging: it holds on the most recent periods, but not on most of the history. A recent edge, less proven.
  • Non-robust: detected on the full history, but neither on most sub-periods nor on the most recent ones.
  • Exploratory leads: to test with care, they do not count in the impact summary.

A symbol without enough closed positions is not analyzed: with too few trades, no conclusion holds.

An emerging recommendation: recent, less provenDemo data

The impact, before and after

For each objective, ProTradingData shows the average ratio per position, the total ratio, the maximum drawdown, the number and share of positions kept, and both equity curves, before and after.

The ProTradingData Optimization page with its recommendations and their impact
Each objective's impact and its recommendations

Look above all at the share of positions kept. An optimization that removes half of your trades no longer fixes a weakness: it describes another strategy.

Test before applying: the virtual journal

A recommendation is still a hypothesis until it has been checked on trades it has not seen. That is what the virtual journal is for:

  1. Create the journal. From an objective, create a virtual journal. Starting capital and position risk are taken from the source journal; symbols without a recommendation are kept as they are.

  2. Let it run. Exclusions stay fixed and also apply to the source journal's next positions. Exploratory leads are not applied.

  3. Compare. After a few weeks, compare the virtual journal with the real one. If the gap holds, the exclusion can go into your trading plan.

The virtual journal's hours follow the time zone of your profile.

Rules that keep you from fooling yourself

  • Enough trades. On 30 trades, a 50% win rate can hide a true rate between 32% and 68%. Benjamin Deleuze draws no conclusion from a journal figure below 100 trades.
  • Several periods. An exclusion that only improves one period is noise.
  • Few exclusions. Removing a slot or two, yes; rewriting the whole strategy, no.
  • A check on what comes next. The virtual journal decides, not the history.

Once an exclusion is validated, write it into your trading plan: ProTradingData will then check every trade.

Frequently asked questions

What is overfitting?

Fitting a strategy so tightly to the past that it no longer works afterwards. Remove enough cells from a heatmap and any history becomes perfect, without saying anything about the future.

How do you avoid overfitting?

By keeping only the changes that hold over several periods, not just over the full history, then testing them on the following weeks before applying them.

What does ProTradingData's optimization do?

It looks for groups of positions whose removal improves your results, according to an objective: Balanced, Profit or Drawdown. Each recommendation shows how many periods it holds on.

What is a virtual journal?

A journal created from an objective's recommendations: it shows your trading as it would have been without the excluded positions, and applies those rules to the source journal's next positions.

Keep reading

ProTradingLabs is not affiliated with FTMO, MetaQuotes, Spotware or TradingView. Trading leveraged products carries a risk of capital loss.