Choosing and Verifying 7 min read

How to choose an MT5 Expert Advisor: setfiles, risk inputs and test results

MetaTrader 5 Strategy Tester report with profit factor, recovery factor, equity drawdown and consecutive losses highlighted for an Expert Advisor review

Choosing an MT5 Expert Advisor means checking six things in order: what the product documents, which setfiles it ships, which risk inputs it exposes, how its Strategy Tester report reads, how it behaves on real ticks with delays, and whether a live record confirms the test.

The best MT5 Expert Advisor for one trader is the one that passes these checks on that trader’s broker and balance; no single Expert Advisor is best for every account. This guide walks through each check, explains the Strategy Tester metrics that matter, and matches Expert Advisor types to markets and accounts. HiPips does not rank individual Expert Advisors here, so the method applies to any MT5 Expert Advisor you compare. This guide is part of the HiPips path to choose, test and run an MT4 or MT5 Expert Advisor, which starts with what an Expert Advisor is.

What should an MT5 Expert Advisor’s documentation state?

An MT5 Expert Advisor’s documentation states where and how the Expert Advisor runs: platform build, symbols, timeframe, account requirements, strategy type, risk inputs, setfiles and permissions.

The documentation checks are listed below. A missing item is a question for the vendor before any purchase or test.

  • Platform and build: MT5 and the minimum build the .ex5 file needs.
  • Symbols and timeframe: the symbols and chart timeframe the strategy was built for.
  • Account requirements: minimum balance, hedging or netting account, and broker conditions such as a raw spread account.
  • Strategy type: scalping, breakout, trend, grid or martingale, stated plainly.
  • Risk inputs: the inputs that limit lot size and loss, listed with their defaults.
  • Setfiles: which setfiles ship with the file and what each one is for.
  • Permissions: whether the Expert Advisor needs DLL imports or WebRequest, and why.

A strategy type that is not stated is the most serious gap, because grid and martingale logic changes the risk of every other setting. Permissions decide where the Expert Advisor can run, and the guide to no-DLL Expert Advisors explains why a DLL requirement rules out MetaQuotes Virtual Hosting.

Which setfiles should an MT5 Expert Advisor include?

An MT5 Expert Advisor should include one setfile for each symbol, timeframe and risk level it supports, each named so the trader knows which chart and account it belongs to.

A setfile stores the Expert Advisor’s input values, so a package with named setfiles (such as XAUUSD M15 low risk and XAUUSD M15 default risk) shows the conditions the vendor tested. A package with a single setfile for “all symbols” leaves the trader to calibrate stops and spread limits for each market. Check whether the setfiles use the same point scale as your broker, because a maximum-spread or stop input in points means a different price distance on a symbol quoted with a different number of digits. Loading and editing setfiles is covered in the guide to install an Expert Advisor and setfiles in MT5.

Which risk inputs should an MT5 Expert Advisor expose?

An MT5 Expert Advisor should expose the inputs that cap loss at trade level and account level: lot size or risk percentage, stop loss, maximum lot, maximum open trades, daily loss limit, equity stop and maximum spread.

An Expert Advisor without a stop loss and without an equity stop has no limit below the broker’s stop out, and a grid or martingale Expert Advisor with that design carries its whole recovery sequence on the account. A risk-percentage input that reads the symbol’s contract size keeps risk consistent across brokers; a fixed-lot input needs recalculating for each account. How each input limits loss, with worked examples, is explained in Expert Advisor risk settings.

How to read an MT5 Strategy Tester report

An MT5 Strategy Tester report shows whether the Expert Advisor made money over the test, how much drawdown it needed to do so, and how its losses clustered, through a small set of metrics.

The MetaTrader 5 testing report defines the metrics below, according to the MetaTrader 5 help on the testing report. The right-hand column explains what each one tells you about an Expert Advisor.

Report metricDefinition in MT5What it tells you
Profit factorGross profit divided by gross lossBelow 1.0, the Expert Advisor lost money over the test
Expected payoffAverage result of one dealCompare it with spread and commission per trade
Recovery factorProfit divided by maximum drawdownHow much drawdown the profit required
Sharpe ratioReturn divided by the standard deviation of returnHow steady the returns were
Equity drawdown relativeLargest peak-to-low fall of equity in percentThe deepest loss including open positions
Maximal consecutive lossesLargest losing series and its trade countThe streak your risk per trade must survive

Read equity drawdown before balance drawdown, because equity includes floating losses on open positions. An expected payoff close to the spread and commission of one trade leaves no margin for worse live execution. A test with few trades says little about any of these numbers, so check the total trade count before trusting the ratios.

How to test an MT5 Expert Advisor on real ticks

Testing an MT5 Expert Advisor on real ticks means running the Strategy Tester in “Every tick based on real ticks” mode on your broker’s data, with an execution delay, over a period the vendor’s setfile was not optimized on.

The “Every tick based on real ticks” mode uses real ticks accumulated by brokers without simulation, and random or fixed delays add execution lag to the test, according to the MetaTrader 5 help on strategy testing. The test steps are listed below.

  1. Select your broker’s symbol, the setfile’s timeframe and the real-ticks mode.
  2. Add a random delay to simulate live execution.
  3. Test a period outside the one shown in the vendor’s screenshots.
  4. Read the report metrics above and the equity curve.
  5. Forward test the same setfile on a demo account with the live broker for several weeks.

A result that holds only on the vendor’s period and collapses on another period points to overfitting, and the guide to MT5 Expert Advisor optimization explains how to recognize it. The tester settings step by step are in the guide on how to backtest an MT5 Expert Advisor.

How to confirm an MT5 Expert Advisor with a live record

A live record confirms an MT5 Expert Advisor when a real account, monitored by a third-party service, shows results and equity drawdown that match the backtest over several months.

A live record answers what a backtest cannot: real spread, slippage and execution on a live server. Check four things: the monitoring service verifies the account connection, the record shows equity drawdown and not only balance, the account’s start date and deposits are visible, and the traded symbols and lot sizes match the setfile you plan to use. A large gap between live drawdown and backtest drawdown means the backtest missed a condition of live trading. The checks for Myfxbook records and backtest red flags are in the guide on how to verify a forex robot before buying.

Which MT5 Expert Advisor type fits your market and account?

The MT5 Expert Advisor type that fits you depends on the market you trade and the account that runs it, because each market changes contract size, trading hours and spread, and each account type changes the loss limits.

The table below maps markets and accounts to the checks that matter most and the guide that covers them.

Market or accountMain checkGuide
XAUUSDContract size, stop at the minimum lot, spread in pointschoose an XAUUSD Expert Advisor
BTCUSDContract size per broker, weekend pauses, 2:1 EU leverage capBitcoin Expert Advisor for MT5
NAS100 and US30Session hours, spread at the open, slippageNAS100 and US30 Expert Advisors
Funded accountDaily and maximum loss floors, news windowsprop firm Expert Advisor rules

Which MT5 Expert Advisor is the best?

The best MT5 Expert Advisor is the one that passes all six checks of this guide on your own broker and balance, and the checks rank in the order below.

  1. Documentation: platform, symbols, strategy type, risk inputs and permissions stated.
  2. Risk inputs: a stop loss or equity stop plus a maximum lot.
  3. Setfiles: one per symbol, timeframe and risk level you plan to use.
  4. Tester report: profit factor above 1.0 on real ticks with delay, with equity drawdown you accept.
  5. Out-of-sample and demo tests: results that hold beyond the vendor’s test period.
  6. Live record: a monitored account that matches the backtest.

Compare MT5 Expert Advisors against this list and test the shortlist on demo before any live account.

Is an MT5 Expert Advisor better than an MT4 Expert Advisor?

An MT5 Expert Advisor is not better than an MT4 Expert Advisor by platform alone, because results come from the strategy; MT5 gives the stronger testing tools, including real-tick and multi-currency tests, and an Expert Advisor runs only on the platform its file was compiled for. The platform differences that matter for automated trading are compared in MT4 vs MT5 Expert Advisors.

author-avatar

About James Miller

James Miller writes the HiPips guides on choosing, testing and running MetaTrader 4 and MetaTrader 5 Expert Advisors. He has four years of MQL programming and trading experience, and his guides cite MetaQuotes documentation for platform facts and state the risks of leveraged trading.

Leave a Reply

Your email address will not be published. Required fields are marked *