December 5, 2026
To vet an MT5 trading bot (an Expert Advisor, or EA), run its demo or code in the MetaTrader 5 Strategy Tester using "Every tick based on real ticks", a delay close to your real ping, your broker's real commissions, your actual deposit and leverage, and a forward period the bot was not optimized on. Then read History Quality, equity drawdown, the lowest Margin Level and the forward results before you look at net profit. A backtest that only looks good in "Open prices only" mode, with no costs and no delay, tells you very little about how the bot will behave on a live account.
This guide is documentation research based on the MetaTrader 5 Help pages for the Strategy Tester, tick generation, testing report and optimization, plus a CFTC customer advisory, checked on December 5, 2026. We did not test any specific EA and make no claims about any product's results. If you are new to the topic, start with how to backtest a trading strategy; for MT5-compatible tools, see our MT5 platform page.

The Strategy Tester runs an EA on historical data, so its output is only as realistic as the data and settings behind it. Three settings cause most of the gap between a tester report and a live account:
None of this means the tester is unreliable. It means the person who produced the report chose settings, and you need to know which ones.
MetaTrader 5 offers five modes. Four of them simulate trading on history:
| Mode | What the tester uses | Good for | Main limitation |
|---|---|---|---|
| Every tick based on real ticks | Real ticks accumulated by the broker, no simulation | Final checks, scalpers, tight stops | Large downloads; data is specific to that broker's server |
| Every tick | Ticks generated from one-minute bars | Detailed testing when real ticks are missing | Spread is fixed within each minute; intrabar path is generated |
| 1 minute OHLC | Open, high, low and close of each minute bar | Faster checks of slower strategies | Nothing between those four prices is modeled |
| Open prices only | The EA runs only at the open of each bar | Quick rough screening | Stops and pending orders may trigger at a different price than specified |
The fifth mode, Math calculations, loads no price history and is for computing functions, not for judging a trading bot.
The help page calls real-tick testing "as close to real conditions as possible" and notes that, on real ticks, the spread can change within a minute bar. In generated modes, the spread is fixed for each minute bar. If real tick data is missing for a minute, the tester falls back to generated ticks for that minute, so a "real ticks" test can still contain generated stretches where the broker's history is thin.
Rule of thumb: use Open prices only or 1 minute OHLC to screen ideas fast, then rerun anything you might trade on real ticks. If a seller only shows results from fast modes, rerun the test yourself before trusting it.
When ticks are generated, MetaTrader follows a documented scheme. For a rising (bull) bar with three or more ticks, the generated path moves from the open down to the low, then up to the high, then to the close. For a falling (bear) bar, it goes open, high, low, close.
Now picture a long trade whose stop loss and take profit both sit inside the same bar's range, as in the diagram above:
In reality, price could have taken either route. The outcome of that trade comes from the modeling rule, not from what the market did. For an EA with stops and targets a few points apart, many trades fall into this zone, which is why real-tick testing matters most for scalpers and grid bots and least for EAs that hold positions for days.
If you want to see this on your own data, run the same EA on the same dates in Every tick and in Every tick based on real ticks. A large difference in trade count, win rate or net result tells you the strategy depends on fine intrabar detail, and that its live results will depend heavily on your broker's prices and execution.
These settings live on the Strategy Tester's Settings tab and in its advanced testing settings:
Suppose a EURUSD scalping EA shows an average net result of 1.5 pips per trade in a backtest run on an account where the historical spread averaged 0.6 pips and no commission was set. On EURUSD, one pip on one standard lot is worth about $10 when the account is in US dollars. If your live account averages 0.8 pips more spread than the test data and charges $7 per lot round turn, the extra cost is 0.8 pips plus 0.7 pips, or 1.5 pips per trade. The edge in that test is gone before slippage. These figures are an illustration, not measurements, but the arithmetic shows why cost settings matter most for EAs that make many small trades.
Optimization runs the EA many times with different inputs and picks the best combination. That makes it easy to fit settings to noise. MetaTrader's built-in defense is the Forward option: it splits your date range (a half, a third, a quarter or a custom date), optimizes on the earlier part and then reruns the best passes on the later part. According to the help pages, the top 10% of passes (full search) or 25% (genetic algorithm) are retested on the forward period, and the closer back and forward results match, the more likely the EA is to hold up.
Practical checks:
For a broader validation process beyond MT5, see how to test a trading bot before going live.
Net profit is the last line to look at, not the first. These report fields, as defined in MetaTrader's help, tell you whether the profit is believable:
| Report field | What it measures | What to look for |
|---|---|---|
| History Quality | Share of correct one-minute data; gaps and bad bars count as incorrect | Low quality or gaps in the period where most profit was made |
| Bars and Ticks | How many bars and ticks were modeled | A tick count that looks too small for the period suggests a fast mode |
| Balance vs equity drawdown | Balance counts closed trades; equity includes open positions | Equity drawdown far above balance drawdown can mean losing positions are held open, as in grid or martingale bots |
| Margin Level | Lowest margin level reached during the test | A low minimum means the account came close to a margin call or stop-out |
| Profit Factor and Recovery Factor | Gross profit over gross loss; net profit over maximum drawdown | Values that barely clear 1 leave little room for higher live costs |
| Expected Payoff | Average result per trade | Compare it with your all-in cost per trade from Step 3 |
| Z-Score | Whether wins and losses cluster more than chance suggests | Useful context, but needs many trades to mean anything |
| Entries by hour and MAE chart | When trades open; how far each went against you before closing | Profit concentrated in one session, or trades that sit deep in loss before recovering |
The report also shows a Sharpe ratio, calculated in the tester with a risk-free rate of zero, and an LR Correlation that measures how closely the balance curve tracks a straight line. A very smooth curve is not automatically good news: grid and martingale EAs often show smooth balance curves while equity swings widely underneath. Our guide to trading bot performance reports explains these metrics in more depth for any platform.
MetaTrader says every product on the MQL5 Market comes with a free demo version that can be run in the Strategy Tester, so for Market products you can reproduce the test instead of relying on screenshots. For EAs sold elsewhere, ask for the exact tester settings (modeling mode, dates, deposit, leverage, delay and commissions) and a set file so you can rerun them.
Treat a backtest as a hypothesis, not a track record. The CFTC's customer advisory on trading bots describes a fraud in which the operator created fake customer accounts and balances using MetaTrader demo accounts, and warns that claims of guaranteed or extremely high returns are a red flag. A real-money track record that can be independently verified is stronger evidence than any backtest, and even that does not predict future results.
Red flags worth walking away from:
Educational research based on MetaTrader 5 Help documentation and a CFTC customer advisory, checked on December 5, 2026. Platform features change, so confirm details in the current documentation. We did not run hands-on tests of any Expert Advisor, the cost example uses hypothetical numbers, and this article contains no sponsored or affiliate links. Nothing here is trading advice. Backtests do not guarantee future results, and leveraged forex and CFD trading can lose money quickly.
Get our free Top 5 Bots for Early Retirement report plus The Bot Report newsletter — the bots we'd actually trust to compound over the long term.