BACKTESTMARKET
How to Load Expert Advisors in MetaTrader 4
Trading Framework·

How to Load Expert Advisors in MetaTrader 4

A complete 11-step guide to installing, configuring, and verifying any Expert Advisor in MetaTrader 4 — from copying the files to confirming the smiling face icon that tells you trading is live.

By BacktestMarket Team
expert advisormetatrader 4how to run EAinstall EAauto tradingtrading robotMT4

Loading an Expert Advisor into MetaTrader 4 involves more than copying a file. You need to enable automated trading, compile the EA, add the right symbols to your watchlist, configure the common settings, and set the input parameters. Miss one step and the EA either won't appear or won't trade.

This guide walks through every step in order.


Step 1 — Copy the Expert Advisor Files

Download the Expert Advisor package. It will typically contain one or more .ex4 files (compiled EAs) and possibly .mql4 source files. Keep them in an accessible folder on your computer — you will copy them into the MetaTrader directory in Step 4.

For BacktestMarket EAs specifically, the package also includes a drawdown folder containing .txt files where the EA logs its operations. This is used by the performance monitoring system — add it to the MQL4\Files directory inside your MT4 data folder.


Step 2 — Open MetaTrader 4

Launch MetaTrader 4. Make sure it connects to your broker's server successfully before proceeding.


Step 3 — Enable Automatic Trading

Look for the AutoTrading button in the top toolbar. When enabled, it appears green. If it is grey or off, click it to activate.

MetaTrader 4 — AutoTrading button enabled (green)

If you cannot see it in the toolbar, right-click the toolbar area, select AutoTrading, and click Insert to add it.


Step 4 — Open MetaEditor and Paste the EA Files

Click the MetaEditor button in the toolbar (the yellow notepad icon). Once MetaEditor opens:

Open MetaEditor from MetaTrader 4 toolbar

In the Navigator panel on the left, find the Expert folder. Right-click it and select Open Folder:

MetaEditor — right-click Expert folder to open it in Explorer

This opens the MQL4\Experts directory in Windows Explorer. Paste your .ex4 files here:

Paste EA bot files into the Experts folder

Tip: Create a desktop shortcut to this folder for faster access in the future.

After pasting the files, either close and reopen MetaTrader 4 (which triggers automatic compilation) or manually compile in MetaEditor by pressing F7.


Step 5 — Add Symbols to Market Watch

Your EA trades specific instruments. They must be visible in the Market Watch panel before you can open a chart for them.

Open the Symbol List window (right-click Market Watch → Show All, or use View → Symbols):

MetaTrader 4 Symbol List — add symbols to Market Watch

Browse your broker's folder structure, find each symbol the EA needs, and double-click to add it to Market Watch:

MetaTrader 4 Market Watch — symbols added and visible


Step 6 — Open a Chart and Attach the EA

In the Navigator panel inside MetaTrader 4, expand the Expert Advisors section. Find your .ex4 file:

Open chart in MetaTrader 4 for the target symbol

Either double-click it or drag it onto the chart you want the EA to trade on:

Drag Expert Advisor onto chart to attach it


Step 7 — Configure Common Options

A settings dialog will appear. Switch to the Common tab:

MetaTrader 4 EA Common settings — allow live trading

Make sure the following are checked:

  • Allow Live Trading — required for the EA to place orders
  • Long & Short positions allowed
  • Allow DLL imports (if the EA uses external DLLs)
  • Allow external expert imports
  • Enable alerts

Click OK to proceed.


Step 8 — Configure Input Parameters

Switch to the Inputs tab to configure the EA's parameters:

MetaTrader 4 EA Input Parameters settings

Key parameters for BacktestMarket Expert Advisors:

ParameterBacktest modeLive mode
backtest_mode10
risk per operationyour choicemax 1.5% of equity (default)
max drawdownyour choiceset proportionally to risk

For backtesting, set backtest_mode = 1. If your historical data is in a different timezone (for example, US futures data at GMT-6), apply the appropriate hour shift to align it with GMT+1.

For live trading, set backtest_mode = 0. The EA will log performance to the drawdown folder — this is the recording system that monitors real drawdown versus the configured maximum.

For instruments with contract rollover (futures CFDs), configure:

  • CFD — the broker's symbol prefix (e.g., Dax30)
  • Month — the current contract month letter (F=Jan, G=Feb, H=Mar, J=Apr, K=May, M=Jun, N=Jul, Q=Aug, U=Sep, V=Oct, X=Nov, Z=Dec)
  • Year_digits — the last digits of the contract year (e.g., 17 for 2017)

The EA concatenates these to build the full symbol name (e.g., Dax30Mar17). It automatically rolls to the next contract approximately 5 days before expiry.


Step 9 — Confirm the EA Is Active

After clicking OK, look at the top-right corner of the chart. A small face icon will appear:

  • Smiling face ☺ — the EA is active and trading is enabled
  • Frowning face ☹ — trading is disabled (check AutoTrading, Common settings, or broker connection)

MetaTrader 4 — smiling face icon confirms EA is active

The smiling face is your confirmation that everything is configured correctly.


Step 10 — Monitor the Terminal

Check the Experts tab at the bottom of the MetaTrader terminal daily, particularly if you are not using a VPS:

MetaTrader 4 Terminal — check Experts tab for EA activity

  • Red circle icons indicate errors that need attention
  • Yellow triangle icons are non-critical warnings
  • Normal EA activity entries (orders opened, closed, etc.) appear as plain text

Step 11 — Set Up Automatic Contract Rollover

For BacktestMarket EAs that trade non-continuous CFDs (futures contracts that expire quarterly in March, June, September, and December), the automatic rollover system handles contract transitions:

Rollover input parameters in MetaTrader 4 EA settings

The EA monitors the current contract expiry and automatically reloads the chart with the next contract symbol approximately 5 days before expiration. Configure the CFD, Month, and Year_digits parameters as described in Step 8.


Summary

StepAction
1Copy .ex4 files (and drawdown folder for BTM EAs)
2Open MetaTrader 4
3Enable AutoTrading (green button)
4Paste files into MQL4\Experts via MetaEditor
5Add symbols to Market Watch
6Open chart, drag EA onto it
7Set Common options (Allow Live Trading)
8Configure Input Parameters
9Verify smiling face icon ☺
10Monitor the Experts tab in Terminal
11Configure rollover for futures CFDs

If you see a smiling face, your Expert Advisor is running. The next step is to understand how to evaluate its live performance — read How to Read a Backtest Report to understand what metrics to track.

Newsletter

Stay updated

New datasets, expert advisors, discounts, and trading insights — straight to your inbox.

Cart

Your cart is empty

Add some products to get started.