December 5, 2026

How to Vet an MT5 Trading Bot in the Strategy Tester: Modeling Modes, Costs and Report Red Flags

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.

Diagram of the four MT5 Strategy Tester tick modeling modes from Open prices only to Every tick based on real ticks, an example showing how the same one-minute bar can turn a long trade into a loss or a win depending on the generated price path, and five report lines to check first: History Quality, equity drawdown, Margin Level, forward results, and costs and delay
How the MT5 Strategy Tester models price, why intrabar order matters for tight stops and targets, and which report lines to check first. Summarized from MetaTrader 5 Help. Illustration: Trading Bot Experts.

Why an MT5 backtest can look better than live trading

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:

  • How price is modeled. Unless you test on real ticks, the tester rebuilds price movement inside each bar from minute data. That rebuilt path is an assumption, not a record.
  • Execution assumptions. With "No delay", MetaTrader's help says orders execute at requested prices without requotes, which it describes as "ideal" conditions.
  • Costs. Spread comes from historical data, but commissions depend on the account settings you test with. A scalping EA can flip from profit to loss on costs alone.

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.

Step 1: Choose the right tick modeling mode

MetaTrader 5 offers five modes. Four of them simulate trading on history:

ModeWhat the tester usesGood forMain limitation
Every tick based on real ticksReal ticks accumulated by the broker, no simulationFinal checks, scalpers, tight stopsLarge downloads; data is specific to that broker's server
Every tickTicks generated from one-minute barsDetailed testing when real ticks are missingSpread is fixed within each minute; intrabar path is generated
1 minute OHLCOpen, high, low and close of each minute barFaster checks of slower strategiesNothing between those four prices is modeled
Open prices onlyThe EA runs only at the open of each barQuick rough screeningStops 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.

Step 2: Understand the intrabar problem with tight stops

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 an up bar, the generated path reaches the low first, so the tester records a stop-out and a loss.
  • In a down bar, the path reaches the high first, so the tester records the target and a win.

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.

Step 3: Match costs, delay and account rules to your real account

These settings live on the Strategy Tester's Settings tab and in its advanced testing settings:

  1. Delay. Choose a fixed delay equal to your measured ping to the trade server (the platform can measure it), or Random delay to stress-test. MetaTrader notes that delays apply to trade requests the EA sends, not to the server-side execution of pending orders.
  2. Commissions. Enable "Use predefined commissions" to apply your current account's settings, or enter them manually per lot, per deal or as a percentage. If you skip this on a commission account, the report overstates results.
  3. Spread. The tester does not model spread; it takes it from history. Test on the same broker server and account type you plan to trade, because spreads differ between raw and standard accounts.
  4. Deposit and leverage. Use the amount you would really fund. Leverage changes how much margin positions reserve, which affects stop-outs in the test.
  5. Netting or hedging. The advanced margin settings let you pick the position accounting system. US retail forex accounts follow FIFO and no-hedging rules, so a hedging-mode test may not reflect what your account allows. We cover those rules in automated forex trading software for US accounts.
  6. Avoid profit in pips for final tests. MetaTrader says this option drops swap and commission calculations and skips margin control, so it is only for rough estimates.
Get the Top 5 Bots for Early Retirement report:

Worked cost example (hypothetical numbers)

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.

Step 4: Separate optimization from validation

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:

  • Do the best backtest settings stay near the top in the forward results, or do they collapse?
  • Do neighbouring input values give similar results? A single sharp peak surrounded by losers is a sign of curve fitting.
  • Was the forward period long enough to include different market conditions, not just a few weeks?

For a broader validation process beyond MT5, see how to test a trading bot before going live.

Step 5: Read the testing report in the right order

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 fieldWhat it measuresWhat to look for
History QualityShare of correct one-minute data; gaps and bad bars count as incorrectLow quality or gaps in the period where most profit was made
Bars and TicksHow many bars and ticks were modeledA tick count that looks too small for the period suggests a fast mode
Balance vs equity drawdownBalance counts closed trades; equity includes open positionsEquity drawdown far above balance drawdown can mean losing positions are held open, as in grid or martingale bots
Margin LevelLowest margin level reached during the testA low minimum means the account came close to a margin call or stop-out
Profit Factor and Recovery FactorGross profit over gross loss; net profit over maximum drawdownValues that barely clear 1 leave little room for higher live costs
Expected PayoffAverage result per tradeCompare it with your all-in cost per trade from Step 3
Z-ScoreWhether wins and losses cluster more than chance suggestsUseful context, but needs many trades to mean anything
Entries by hour and MAE chartWhen trades open; how far each went against you before closingProfit 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.

Step 6: Check the seller's evidence, not just the screenshot

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:

  • Results shown only in Open prices only or with "No delay" and no commissions.
  • Test periods that start or stop at convenient dates, or skip a known volatile stretch.
  • Equity drawdown hidden or missing from the report.
  • Promises of fixed monthly returns or win rates near 100%.
  • No way to run the EA yourself before paying.

A quick MT5 vetting checklist

  1. Download enough history and real ticks from the broker server you will trade on.
  2. Run a fast screen, then a final test in Every tick based on real ticks.
  3. Set delay to your real ping, apply real commissions and use your real deposit and leverage.
  4. Match netting or hedging to your account type.
  5. Optimize only with a forward period, and compare back and forward results.
  6. Read History Quality, equity drawdown, minimum Margin Level and Expected Payoff against costs before net profit.
  7. Run the EA on a demo account for several weeks, on the same server and VPS setup you will use live. See our VPS hosting guide for trading bots if you need always-on hosting.
  8. Go live with a small size and compare live fills with the test.

Frequently asked questions

What is the most accurate testing mode in the MT5 Strategy Tester?

"Every tick based on real ticks" uses the broker's recorded ticks instead of simulated ones, and MetaTrader describes it as the closest to real conditions. Where real tick data is missing for a minute, the tester generates ticks for that minute instead.

Can I test an MQL5 Market trading bot before buying it?

Yes. MetaTrader states that every product on the MQL5 Market has a free demo version that can be tested in the Strategy Tester. Use your own broker's data, costs and settings rather than the seller's screenshots.

Why do my MT5 backtest results differ from live trading?

Common causes are generated rather than real ticks, no execution delay, missing commissions, different spreads between test data and your account, and settings optimized on the same data they were tested on. Live slippage, requotes and server outages also never fully appear in a backtest.

What does History Quality mean in an MT5 report?

It is the percentage of correct one-minute data used in the test. Gaps in history and one-tick bars with different open, high, low and close values count as incorrect, so low quality means the test ran on incomplete data.

Is a high Sharpe ratio in the Strategy Tester a good sign?

It can be, but check how it was produced. The tester uses a zero risk-free rate, and strategies that hold losing positions open can show smooth balance curves. Compare it with equity drawdown, the lowest margin level and the forward results.

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.

Free Report

Before You Choose a Bot, Read This

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.

By entering your email, you'll begin receiving The Bot Report newsletter as well as occasional updates. You can unsubscribe at any time. Our privacy policy.

Written by
Amara Okafor
11 min read

Pseudonymous contributor to TradingBotExperts covering trading technology, brokers, and automation.