Home / Installation Guide
Step-by-Step Tutorial

How to Install & Backtest an EA

Complete walkthrough for installing automated trading robots, enabling algorithmic execution permissions, and loading preset risk configuration set files.

Time: 5 Minutes Beginner Friendly MT4 & MT5 Compatible
1

Open the MetaTrader Data Folder

Launch your MetaTrader 4 or MetaTrader 5 terminal on your computer or VPS. In the top navigation bar, click File → Open Data Folder.

Path: File > Open Data Folder > MQL4 (or MQL5) > Experts
2

Paste the EA File & Preset (.set) Files

Copy your downloaded Expert Advisor file (.ex4 for MT4 or .ex5 for MT5) and paste it into the Experts folder. If you received configuration set files (.set), paste them into MQL4/MQL5 > Presets.

Tip: After pasting, return to MetaTrader, right-click on the Navigator window (Ctrl+N), and select Refresh.
3

Enable Automated Trading Permissions & DLL Imports

In the MetaTrader top menu, click Tools → Options (or press Ctrl+O), then navigate to the Expert Advisors tab:

  • Check "Allow automated trading" (or "Allow Algo Trading")
  • Check "Allow DLL imports" (required for licensing & news filters)
  • Check "Allow WebRequest for listed URL" if using dynamic news feed API
4

Attach the EA to Your Chart & Load the .set File

Open the designated chart (e.g. XAUUSD M15 or EURUSD H1). Drag your EA from the Navigator window onto the chart. In the popup window:

  • In the Common tab, ensure "Allow Live Trading" is checked.
  • In the Inputs tab, click the Load button and select your desired .set file to populate risk percentage, lot sizes, and TP/SL.
  • Click OK.
✓

Confirm Live Trading Status

Check the top-right corner of your chart. You should see a Smiley Face icon (in MT4) or a Blue Hat icon (in MT5).

Success! Your EA is now running and monitoring institutional market conditions 24 hours a day.

Part 2: How to Run an Expert Advisor Test (MT5 Backtesting)

Never deploy a robot on a live account without running an expert advisor test first. MetaTrader 5’s Strategy Tester is the most powerful tool for quantitative backtesting and optimization.

6

Open the MT5 Strategy Tester

In MT5, press Ctrl + R or click View → Strategy Tester. Select "Single (Test a single expert advisor)" to open the backtesting interface.

  • Expert: Select your EA from the dropdown list.
  • Symbol: Choose your target pair (e.g., EURUSD).
  • Period: Select the timeframe your EA was designed for.
  • Date: Select "Custom period" and test over at least the last 2-3 years.
7

Configure Modeling Quality & Optimization Metrics

For accurate backtesting, you must configure the modeling environment to simulate real broker conditions.

  • Execution: Set to "Random Delay" to simulate real-world VPS latency.
  • Modeling: Always use "Every tick based on real ticks". "Open prices only" will result in fake, exaggerated win rates.
  • Deposit: Match your actual planned account size (e.g., 10000 USD).
  • Optimization: Select "Fast (genetic based algorithm)" to optimize parameters like Stop Loss or Take Profit distance.
✓

Run the Test & Analyze the Report

Click Start in the bottom right corner. Once completed, navigate to the Backtest Report tab. Pay close attention to:

  • Profit Factor: Aim for a metric above 1.5.
  • Max Drawdown: Ensure this does not exceed your personal or prop firm limits (e.g., < 8%).
  • Recovery Factor: Measures how quickly the EA rebounds from drawdown (Higher is better).

Looking for Verified MT4/MT5 EAs?

Explore our catalog of institutional automated trading robots configured with prop-firm safe drawdown circuit breakers.

Exclusive Trader Kit 2026

Forex EA & Risk Management Cheat Sheet

Download the complete quantitative guide: Position Sizing Formulas, Prop Firm Drawdown Rules, and MQL5 Parameter Cheat Sheets.

Instant PDF Access No Spam Guarantee