Urgent.News

What's breaking now, across thousands of outlets.

Tech

Is your MT5 EA losing on its entries or its exits? A free report analyser

The MT5 Strategy Tester gives you a lot of numbers: profit factor, drawdown, win rate, consecutive losses. What it doesn't tell you is which part of the EA to change. A profit factor of 0.58 says the EA is losing. It doesn't say whether the entries are wrong or the exits are. So I made a small free tool that reads the Strategy Tester's HTML report and answers that question. It runs in the…

The MT5 Strategy Tester provides various statistics about an Expert Advisor's performance, such as profit factor, drawdown, and win rate. However, it does not specify whether the issue lies in the entries or exits of the trades. To address this, a free online tool has been developed that analyzes the Strategy Tester's HTML report and determines which part of the EA needs improvement.

Every losing trade is placed between two categories: it either recovered first before hitting the stop loss, or it never moved favorably against the price. The former indicates an issue with the exit, while the latter points to an entry problem. To identify these, the tool requires a bar CSV file exported from MT5 for the same symbol and period as the report. With this data, the tool calculates the best open profit (MFE) and worst open loss (MAE) for each trade.

The sample EA used for testing lost 90 out of 136 trades, with 31 trades initially in profit but ultimately losing by an average of 0.00204. On the other hand, 30 trades were barely profitable, and 29 trades fell somewhere in between. A balanced split like this is helpful, as it suggests that focusing on the take profit adjustment could only resolve up to a third of the losses.

The tool also examines the market conditions before each trade's entry, such as whether it occurred in an uptrend, downtrend, or sideways range. In the sample case, 93 out of 136 trades took place in ranging markets, suggesting that a filter might be more beneficial than making changes to the exit rule. The tool presents results in an easy-to-understand HTML format, and it can link directly to the trades that contributed to the findings.

The JavaScript-based tool does not require any uploads of data unless the user chooses to save their reports. It can compare two versions of an EA, allowing users to see which trades were affected by the changes made. The current tool is limited to MT5 Strategy Tester HTML reports and requires a bar CSV file for accurate analysis. It is compatible with MT4 once support is added.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Sunday 11 October →