Quant Invest System

How to read an MT5 Strategy Tester report

The MetaTrader 5 report puts about forty numbers on one page. A few of them decide whether the result means anything; several look important and are not; and one line in the header, history quality, is often read as a guarantee it does not give.

Start with the settings, not the profit

The top of the report says what was tested: the Expert Advisor, symbol, timeframe, period, inputs, broker server, deposit and leverage. Check three things before any result.

  • The period. It is the period you asked for, not necessarily the one that ran. If the broker’s price history ends earlier, the test ends there too. Compare the date of the last deal with the end of the period.
  • The broker server. Spread, commission, swap and contract size come from that server’s symbol specification. The same EA on another broker is a different test.
  • The inputs. If they came out of an optimization, the report shows the best of many runs. That changes how much the result proves; see Why one good backtest proves little.

History quality and “100% real ticks”

With the model Every tick based on real ticks, the tester replays the tick history stored by your broker. Where that history has no ticks for a minute, the tester does not stop: it generates ticks for that minute from the one-minute bar, as in the Every tick model (MetaTrader 5 Help, “Real and generated ticks”). The run is then a mix of real and generated minutes.

The header line is a summary, and it is not where the mix is counted. The tester log is. For each test it writes lines like this one:

real ticks absent for 62 minutes of 46252 total minute bars

and, for longer gaps, how many whole days had no real ticks. The header and the log can disagree: a header can show 100% real ticks while the log of the same run lists real ticks missing for most of the minutes. Brokers often keep tick history for a much shorter time than one-minute bars, so the older part of a long test is where the gaps usually are.

Why it matters: on generated ticks, the order of high and low inside a minute and the spread at each tick are modelled. Strategies with tight stops and targets, scalpers and anything that trades on the spread are the most sensitive. A share of generated minutes is also not a share of generated ticks, so treat the log as a map of where to be careful, not as a correction factor.

To read the log: in the Strategy Tester open the Journal tab, right-click and choose Open. The file for the day of your test is there. It also says history synchronized from … to …: the range of bars the broker provided, which is the second way a test can end early.

The numbers that matter

  • Total Trades. Closed trades: the number of observations. Total Deals counts entries and exits separately and is roughly twice as large; ignore it.
  • Expected Payoff. The average trade in money, after commission and swap. It is the edge per trade.
  • Profit Trades (% of total), Average profit trade, Average loss trade. With Total Trades, these four give a first estimate of the Sharpe ratio per trade and how many trades the result needs. Our PSR calculator does that from these four numbers.
  • Equity Drawdown Maximal and Relative. Measured on equity, so open losses count. Balance drawdown only sees closed trades and is always smaller or equal; for strategies that hold losers a long time the difference is the story.
  • Largest loss trade against the average loss. A largest loss many times the average means the risk is in rare events, which a short test may not contain at all.

Numbers that look important and are not

  • Total Net Profit. Depends on lot size and compounding. It says nothing about luck.
  • Profit Factor. Gross profit over gross loss. With few trades it swings widely, and a single large winner can carry it, so it is not evidence on its own.
  • Sharpe Ratio. The tester computes it on its own scale, not per trade, and the report does not say how many observations stand behind it. It cannot be used to judge significance. Use the per-trade Sharpe ratio instead.
  • Recovery Factor. Net profit over maximum drawdown. Longer tests raise it automatically.
  • LR Correlation. How straight the balance line is. Martingale and grid systems produce very straight lines until they do not.

Two lines worth a second look

Z-Score tests whether wins and losses come in runs. A value beyond about ±2 means the order is unlikely to be random. That matters for Monte Carlo drawdown estimates, which usually assume trades are independent; we explain why in Monte Carlo reshuffling and autocorrelation.

Short and Long Trades (won %). A result that comes almost entirely from one direction is a bet on the trend of the test period as much as on the rule.

A short checklist

  1. The test ran over the whole period you set; the last deal is close to its end.
  2. The tester log confirms how much of the run used real ticks, if that matters for your strategy.
  3. Spread, commission and swap of the test symbol are close to the account you will trade. Swap is the one most often wrong on longer timeframes; see How swap costs break H4 and D1 backtests.
  4. Total Trades is enough for the edge per trade: check with the calculator.
  5. The inputs were not chosen as the best of a large optimization, or you know how many runs there were.

How we use the report

A Report Audit reads the full trade list from your report, rebuilds the statistics, and, if you send the tester log, states how much of the test ran on real ticks and where the broker history ended. The free check before payment already tells you whether we can read the file and how many closed trades it has. Check your file for free or see the sample report.

Sources

  • MetaTrader 5 Help: Algorithmic Trading, Real and generated ticks; How the Tester Downloads Historical Data.
  • Bailey, D. H. and López de Prado, M. (2012). The Sharpe Ratio Efficient Frontier. Journal of Risk, 15(2).