16 agents onlineXAUUSD 4 552,4Session: London KillzoneNext analysis: 04:12
MT4 / MT5 · Guide 09

Expert Advisors (EAs): Installation & Backtesting

Expert Advisors are trading robots that automate strategy execution in MetaTrader. Learn how to install, configure and test them.

What is an Expert Advisor?

An Expert Advisor (EA) is a program written in MQL4 (MT4) or MQL5 (MT5) that can analyse the market and execute trades automatically based on predefined rules. It can trade 24/5 without human intervention.

Caution with EAs: Most commercial EAs do not perform consistently in live markets. Many show good backtesting results (historical data) but fail under live market conditions. Never use an EA with real money without testing it thoroughly first.

Installing an Expert Advisor

  1. Obtain the EA file (.ex4 for MT4, .ex5 for MT5)
  2. In MetaTrader: File → Open Data Folder
  3. Navigate to MQL4/Experts (or MQL5/Experts in MT5)
  4. Copy the .ex4 or .ex5 file into that folder
  5. Restart MetaTrader or refresh the Navigator
  6. The EA will appear in the Navigator under "Expert Advisors"

Activating an Expert Advisor

  1. Open the chart for the pair and timeframe the EA will trade
  2. Drag the EA from the Navigator onto the chart
  3. In the configuration window: adjust the EA parameters and enable "Allow Automated Trading"
  4. Click "OK"
  5. Make sure the "AutoTrading" button in the toolbar is enabled (green)
Important: For an EA to trade, MetaTrader must be open and connected to the broker. If you close MT4/MT5, the EA stops working. Some traders use a VPS (Virtual Private Server) to keep MT4/MT5 running 24/5.

Backtesting in the Strategy Tester

The Strategy Tester lets you test an EA against historical data to evaluate its performance before using it with real money:

  1. Open the Strategy Tester: View → Strategy Tester or Ctrl+R
  2. In the lower panel, select the EA you want to test
  3. Choose the symbol (currency pair) and period (timeframe)
  4. Select the date range and simulation model ("Every tick" is the most precise)
  5. Set the initial capital and other parameters
  6. Click "Start" and wait for the simulation to complete
  7. Analyse the results: maximum drawdown, Sharpe ratio, % winning trades, equity curve

Key Backtesting Metrics

Educational content only. This does not constitute financial or investment advice. Trading involves risk of loss; past results do not guarantee future results.