How to Set Up a Forex EA on MT4 and MT5: A Beginner’s Walkthrough

Practical Guides · 10 min read

Getting a forex EA running for the first time involves more steps than most guides cover. Broker selection, account type, VPS setup, file installation, and parameter configuration all need to be done correctly before the EA can trade.

This guide covers each step in order, with the specific decisions that matter most for traders running EAs for the first time.


Step 1: Choose a Compatible Broker

Not all brokers are EA-friendly. The key requirements for running an automated trading system are: MetaTrader 4 or 5 platform support, low spreads on your intended pair, fast execution with minimal slippage, and no restrictions on automated trading (some brokers prohibit certain EA types).

For EURUSD: look for ECN or STP brokers with spreads below 1.0 pip on the main account type. For USDCAD and AUDCAD: similar spread standards apply. For gold: spreads below $0.30 per unit are reasonable on standard accounts.

Check Broker EA Policy

Some brokers label certain strategies as “prohibited” and may close accounts using EAs with averaging or martingale logic. Read your broker’s Terms of Service before funding an account for automated trading.

Step 2: Set Up a VPS

A VPS (Virtual Private Server) is a remote computer that runs MetaTrader 24 hours a day without requiring your personal computer to stay on. For any EA intended to trade continuously, a VPS is essential — not optional.

Without a VPS, the EA stops trading when your computer sleeps, restarts, or loses internet connection. Missing a recovery cycle exit because your computer was off can mean the difference between a closed position and an all-night drawdown.

Most VPS providers offer plans at $10-30 per month with MetaTrader pre-installed. Choose a server located in the same city or region as your broker’s servers to minimize latency.

Step 3: Install the EA File

Once you have purchased an EA from MQL5, download the .ex4 (MT4) or .ex5 (MT5) file. In MetaTrader, go to File > Open Data Folder > MQL4 (or MQL5) > Experts, and paste the file there. Restart MetaTrader and the EA will appear in the Navigator panel under Expert Advisors.

Step 4: Attach to the Correct Chart

Drag the EA from the Navigator panel onto the chart of the correct pair and timeframe. For Chronos Algo: EURUSD, H1. For Velocity: USDCAD, M15. For Sentinel: AUDCAD, M15. For Gold Trend Accelerator: XAUUSD, H1.

Running an EA on the wrong timeframe is one of the most common first-time mistakes. The strategy logic is calibrated to specific bar durations — the wrong timeframe changes every parameter’s effective value.

Step 5: Configure the Five Key Settings

  • Base lot size — set according to your account balance and the sizing guidelines from the developer
  • Kill switch threshold — confirm this is enabled and set to the recommended percentage
  • AutoLot — decide whether to use automatic lot scaling or fixed lots. For beginners, fixed lots are safer.
  • Magic number — a unique ID that prevents the EA from interfering with manual trades or other EAs on the same account
  • Live trading enabled — confirm the “Allow automated trading” button in MetaTrader toolbar is active (yellow play icon)

Run on demo for at least one week before switching to live. Verify the EA is opening and closing trades as expected, that lot sizes match your configuration, and that the kill switch triggers correctly if tested.

Try It on a Demo Account First

All BotFXPro EAs include a free MQL5 demo. Run it in Strategy Tester before committing to live.

Chronos Algo on MQL5 →

Comments

Leave a Reply

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