How to Install an EA on MT5: Complete 2026 Setup Guide

Quick Answer

To install an EA on MT5, download the .ex5 file, open your MetaTrader 5 data folder from File > Open Data Folder, drop the file into MQL5 > Experts, then restart or right-click Experts in the Navigator and refresh. Next, drag the EA onto a chart of the correct symbol and timeframe, enable AlgoTrading in the toolbar, and confirm the "Allow Algo Trading" box is checked in the Common tab of the EA's settings window. A smiley-face icon in the top-right corner of the chart confirms the EA is active. The whole process takes under five minutes once you know where MT5 stores its files.

If you have ever downloaded a robot, dragged it onto a chart, and then wondered why nothing happened, you are not alone. MetaTrader 5 hides its file structure a few folders deeper than most traders expect, and a single unchecked box in the settings window is enough to leave an Expert Advisor sitting idle while you assume it is trading. This guide walks through every step of installing an EA on MT5 correctly the first time, covers the terminal settings that silently block automated trading, and explains how to verify the EA is actually working before you commit real capital. The steps below apply broadly to any MT5-compatible Expert Advisor, and we will use Golden Viper EA, a rules-based XAUUSD automation tool, as a running example so the instructions are grounded in a real installation rather than generic theory.

What You Need Before You Install an EA on MT5

Before opening the terminal, gather three things: the EA file itself (a .ex5 file, or a .ex4 plus .ex5 pair if the vendor ships both platforms from one purchase), any license key or activation instructions the seller provided, and a live or demo trading account already connected to a broker that permits automated trading. Most regulated brokers allow Expert Advisors by default, but it is worth confirming, since a small number of prop-style or restricted accounts disable algorithmic trading at the server level regardless of your local terminal settings.

You should also decide in advance which account you are installing to. Running a new EA on a demo account first is standard practice — not because the software is unsafe, but because it lets you confirm the installation, the symbol name, and the timeframe are all correct before any money is at risk. The MetaTrader 5 automated trading documentation covers the platform's native automation architecture in detail if you want the full technical background before you begin.

Files You Will Typically Receive

Depending on the vendor, a purchase might include a single .ex5 executable, a set file (.set) with preconfigured risk parameters, and a PDF or web-based installation guide. Golden Viper EA, for example, ships as a one-time $199 lifetime license that covers both MT4 and MT5 from a single purchase — so buyers receive both the .ex4 and .ex5 files along with setup instructions, and there is no subscription or recurring fee to manage. A $30/month copy-trading option is also available through an MQL5 signal for traders who would rather mirror trades than run the file locally.

ItemWhere It Comes FromWhy You Need It
.ex5 file (compiled EA)Vendor download or MQL5 MarketThe actual executable MT5 runs on the chart
License key / activationVendor email or account portalUnlocks the EA on your specific trading account
Set file (optional)Vendor documentationPre-loads recommended risk and lot-sizing inputs
Broker account with AlgoTrading permittedYour brokerServer-side automated trading must be allowed
Demo account (recommended first step)Your broker's platformConfirms installation before using real funds

Step-by-Step: Installing an EA on MT5

The installation process is the same whether you are placing a free indicator, a purchased EA, or a product from the MQL5 Market. Follow these steps in order.

Step 1: Open the MT5 Data Folder

Launch MetaTrader 5, click File in the top menu, and select "Open Data Folder." This opens a Windows Explorer window pointed directly at your terminal's private file structure — a separate folder from your regular Downloads directory, which is the most common source of confusion for first-time installers.

Step 2: Navigate to MQL5 > Experts

Inside the data folder, open the MQL5 folder, then the Experts subfolder. This is where every Expert Advisor file must live for MT5 to recognize it. If the vendor provided a subfolder structure (for example, a branded folder containing the .ex5 file plus supporting includes), copy the entire folder in rather than just the single file, since some EAs reference additional resource files at runtime.

Step 3: Copy the EA File Into the Folder

Paste the .ex5 file into the Experts folder. If you downloaded a .zip archive, extract it fully first — a common installation error is dragging the zipped folder itself into MT5 instead of its extracted contents.

Step 4: Restart MT5 or Refresh the Navigator

Close and reopen MetaTrader 5, or right-click "Expert Advisors" inside the Navigator panel (View > Navigator if it is not visible) and select Refresh. Your newly installed EA should now appear in the list.

Step 5: Drag the EA Onto the Correct Chart

Open a chart for the exact symbol the EA is designed for. This step matters more than most traders realize: an EA built for XAUUSD will behave unpredictably or refuse to trade if attached to EURUSD or a differently-named gold symbol like "GOLD" or "XAUUSD.m" depending on your broker's naming convention. Drag the EA from the Navigator directly onto the chart, or double-click it.

Step 6: Configure the Settings Window

A settings window opens automatically. This has several tabs — Common, Inputs, and sometimes Dependencies — and every tab matters for correct operation, which is covered in detail in the next section.

Step 7: Confirm the Smiley Face

Once attached correctly, a small icon appears in the top-right corner of the chart. A yellow smiley face means the EA is loaded and running; a red frowning face or an "X" means something is blocking it, almost always AlgoTrading being disabled or a settings box left unchecked.

Enabling AlgoTrading and the Settings That Actually Block Trading

This is where most installations technically "work" but silently do nothing. MT5 has two separate switches that both need to be on, and missing either one leaves the EA attached to the chart but incapable of placing trades.

The Toolbar AlgoTrading Button

At the top of the MT5 terminal is an "AlgoTrading" toggle button. When it is red or greyed out, no Expert Advisor on any chart can execute trades, even if each one individually looks active. Click it once so it turns green. This is a terminal-wide switch, not per-chart, so it needs to be enabled only once per session unless you turn it off yourself.

The Per-EA "Allow Algo Trading" Checkbox

Inside the EA's own settings window (the one that opens when you attach it), the Common tab has a checkbox labeled "Allow Algo Trading" (older builds call it "Allow live trading"). This must be checked for that specific chart. It is easy to click through this window quickly and miss it, especially if you are also pasting in a set file at the same time.

Other Common Tab Settings Worth Reviewing

The same Common tab also lets you allow or restrict DLL imports and web requests, which most EAs do not need unless they connect to an external notification service. Leave these unchecked unless the vendor's documentation specifically instructs otherwise — enabling permissions an EA does not need adds no benefit and only expands what the program is technically allowed to do on your machine.

For a deeper look at how individual input parameters — lot size, stop distance, risk mode — affect an EA's behavior once it is running, see this guide on understanding EA settings. Getting the installation right and the settings wrong is just as likely to produce disappointing results as getting the installation wrong entirely.

Choosing the Right Chart, Symbol, and Timeframe

An EA is written for a specific strategy logic, and most are also written for a specific timeframe. Attaching an EA to the wrong timeframe chart does not usually produce an error message — it simply changes how the EA reads price data, which can silently break its intended behavior. Golden Viper EA, for instance, is built exclusively around the H4 (4-hour) XAUUSD chart and does not trade any other symbol or timeframe; attaching it to a 15-minute EURUSD chart would not "adapt" the strategy, it would simply not function as designed.

Symbol naming is the second trap. Brokers append suffixes like ".m", ".pro", or "#" to standard symbol names, so "XAUUSD" on one broker might be listed as "XAUUSD.m" on another. If an EA's inputs reference a hardcoded symbol name that does not match your broker's listing exactly, it can fail to find valid price data. Most well-built EAs read the symbol directly from the chart they are attached to rather than a hardcoded string, but it is worth checking the vendor's documentation for this specific point before assuming. It is also worth glancing at your account's lot step and currency settings, since risk-based lot sizing can round slightly differently across brokers with different minimum lot increments — a small detail, but one worth confirming on a demo chart before you fund a live account.

Common Installation Errors and How to Fix Them

Even experienced traders run into the same handful of installation issues repeatedly. The table below covers the ones support teams see most often.

ProblemLikely CauseFix
Red frowning face on chartAlgoTrading disabled, either toolbar or per-EA checkboxEnable both toolbar AlgoTrading and the Common tab checkbox
EA not visible in NavigatorFile placed in wrong folder, or terminal not refreshedConfirm file sits in MQL5 > Experts, then restart MT5
"Invalid account" or license errorEA is license-locked to a different account numberContact the vendor to re-link the license to your account
No trades ever openWrong symbol/timeframe, or strategy conditions not yet metVerify chart matches EA specs; selective strategies wait for setups
"Automated trading disabled by server"Broker restricts algo trading on this account typeContact broker or switch to a standard trading account

That fourth row deserves emphasis. A selective EA that trades roughly once a day on average, like Golden Viper EA's approach on the H4 XAUUSD chart, can appear "inactive" for hours or even a full session simply because the trend and momentum confirmation conditions it looks for have not yet appeared. This is by design — a strategy that waits for a specific setup rather than forcing trades constantly is not the same as a broken installation. If you are unsure whether an EA is genuinely stuck versus simply waiting, this rundown of common EA problems and fixes walks through how to tell the difference.

MT4 vs MT5: What's Different About the Installation

Traders coming from MetaTrader 4 sometimes assume the process is identical, and it is close, but not quite. The table below summarizes the practical differences.

AspectMT4MT5
File extension.ex4.ex5
Folder pathMQL4 > ExpertsMQL5 > Experts
AlgoTrading toggleLabeled "AutoTrading"Labeled "AlgoTrading"
Strategy Tester architectureSingle-threaded, older engineMulti-threaded, faster optimization
Hedging supportNative hedging on most brokersDepends on account type (netting or hedging mode)

If your license covers both platforms, as is the case with Golden Viper EA's single lifetime purchase, the underlying strategy logic is identical between the two — only the file format and folder structure differ. Once you have installed the EA on one platform, repeating the process on the other typically takes only a couple of minutes since you already know where the files need to go. For traders who want to validate performance before going live, this walkthrough on how to backtest an EA on MT5 covers the Strategy Tester workflow in detail.

Verifying the EA Is Running Correctly After Installation

Installation success is not just the smiley face — it is confirming the EA is reading data, respecting its risk settings, and behaving the way the vendor describes. A few checks worth running in your first day or two:

Check the Experts and Journal Tabs

The Toolbox panel at the bottom of MT5 has an "Experts" tab and a "Journal" tab. Both log messages when the EA initializes, when it evaluates conditions, and when errors occur. If the EA immediately throws an error here, that message almost always points directly at the fix, whether it is a missing input, a symbol mismatch, or a license issue.

Confirm Magic Numbers If You Run Multiple EAs

If you plan to run more than one automated strategy on the same account, each EA should use a distinct magic number so the terminal can tell their trades apart and you can review performance separately. This becomes especially important when running more than one strategy at once, which this guide on EA magic numbers explains in more depth.

Cross-Reference Against a Public Track Record

For EAs with a public verified performance history, compare what you see on your own account against the vendor's published results. Golden Viper EA's live trading history is verifiable on Myfxbook under account 11943038, alongside a corresponding MQL5 signal, and both are updated automatically from a real trading account rather than curated after the fact. Myfxbook's own verification process documentation explains how that account-linking and verification badge system works, which is worth understanding regardless of which EA you use, since it is one of the few objective ways to separate a real track record from a marketing claim.

Running the EA on a VPS for 24/5 Uptime

Gold trades nearly continuously across the Asian, London, and New York sessions, and an EA can only act when the terminal it is running on is online. If your personal computer sleeps, loses internet, or restarts for a Windows update, any EA attached to it stops watching the market for that window — it does not "catch up" on missed setups afterward. A virtual private server (VPS) solves this by keeping a lightweight remote copy of MT5 running continuously, independent of your home connection or computer.

Setting one up is straightforward: rent a VPS from a forex-focused provider or your broker directly, remote into it, install MT5 the same way described above, and repeat the EA installation steps on that remote terminal. This step-by-step VPS forex trading setup guide and this comparison of the best VPS options for running an EA both cover provider selection and configuration in more detail than fits here, but the core principle is simple: an EA installed correctly but running on a machine that is offline half the time will underperform one running on a stable, always-on connection, regardless of how good the underlying strategy is.

Security Checks Before You Install Any Third-Party EA

Because an Expert Advisor is executable code running with access to your trading account, it is worth applying the same caution you would to any downloaded software. A few practical checks before installing anything from an unfamiliar source:

  • Only download .ex5 files from the vendor's official site, the MQL5 Market, or a source you have independently verified — never from an unsolicited link or a forum attachment.
  • Be skeptical of any product promising guaranteed returns or a "risk-free" strategy. Legitimate strategy documentation, including the MQL5 reference documentation itself, never frames trading outcomes as guaranteed, because no automated or manual strategy can be.
  • Check whether the vendor publishes a verifiable track record rather than screenshots alone. The CFTC's guidance on forex fraud specifically flags unverifiable performance claims as a common red flag in this market.
  • Watch for pressure tactics — countdown timers, "only 10 licenses left," or urgency around a purchase decision. The CFTC's advisory on trading system fraud and the FTC's own overview of investment scams both cover these patterns in detail and are worth a read before buying any automated trading product, gold-related or otherwise.

None of this means every EA is risky — it means installation is also a good moment to confirm you are dealing with a legitimate, transparent vendor before granting the software access to a live account.

What to Expect Once the EA Is Live

After a correct installation, the EA operates independently — you do not need to sit at the chart watching it. For a selective, H4-based approach like Golden Viper EA's, that means checking in once or twice a day is typically enough, since new setups do not appear every hour. The EA uses risk-based lot sizing, meaning position size is calculated relative to account equity and the selected risk mode (Conservative, Normal, or Aggressive) rather than a fixed lot value, and it manages open trades with a profit-lock mechanism plus an optional safety stop rather than martingale, grid, or averaging techniques that increase exposure after a loss.

It is worth understanding drawdown before your first live trade, not after. Drawdown — the peak-to-trough decline in account equity during a losing stretch — is a normal part of any trading strategy, automated or manual, and Investopedia's explanation of drawdown is a good primer if the term is new to you. This site's own breakdown of how drawdown works and what's normal goes further into how to size positions so a losing streak stays survivable rather than account-threatening.

A Worked Example of Risk-Based Sizing

Say you fund a $2,000 account and select Normal risk mode. The EA calculates position size as a function of that $2,000 balance and the stop distance for the current setup, rather than trading a fixed 0.10 lots regardless of account size. If the account grows to $4,000 over time, position sizing scales up proportionally on the next trade; if it shrinks after a losing stretch, sizing scales down. This is standard practice across well-built risk-managed systems, and the Investopedia guide to risk management covers the broader principle if you want the conceptual background beyond this one example.

Risk Disclosure

Trading gold and other financial instruments carries risk, including the potential loss of your invested capital. Automated tools like Golden Viper EA follow a defined, rules-based process, but no software — automated or manual — can guarantee profits or eliminate losses. Past performance, including any verified track record on Myfxbook or MQL5, does not guarantee future results. Only trade with capital you can afford to lose, and review your broker's terms and your own risk tolerance before enabling any Expert Advisor on a live account.

Frequently Asked Questions

Do I need programming knowledge to install an EA on MT5?

No. Installing a pre-compiled .ex5 file requires no coding — you are copying a file into a folder and attaching it to a chart through the terminal's normal interface. Programming knowledge is only needed if you plan to write or modify an EA's source code yourself.

Why does my EA show a red icon instead of a smiley face after installation?

A red or frowning icon almost always means AlgoTrading is disabled somewhere — either the toolbar-level AlgoTrading button is off, or the "Allow Algo Trading" checkbox in that specific chart's EA settings is unchecked. Enable both and the icon should turn to a smiley face.

Can I run the same EA on both MT4 and MT5 at once?

If your license covers both platforms, yes — you install the .ex4 version on MT4 and the .ex5 version on MT5 separately, following the same steps on each terminal. Golden Viper EA's lifetime license, for example, covers both platforms from a single $199 purchase with no extra installation fee.

Why isn't my EA placing any trades even though it's installed correctly?

A correctly installed EA that isn't trading is usually just waiting for its strategy conditions to be met. Selective strategies, especially ones built around a single higher timeframe like H4, may only find a valid setup once a day or less, which is expected behavior rather than a malfunction.

Is it safe to enable "Allow DLL imports" when installing an EA?

Only enable it if the vendor's documentation specifically requires it. Most EAs, including strategy-focused ones that do not need external connections, do not require DLL imports, and leaving that permission off by default is the safer setting.

Do I need a VPS to run an EA on MT5?

Not strictly, but it is strongly recommended. Gold trades across nearly continuous global sessions, and an EA can only respond to price action while its terminal is online. A VPS keeps the terminal running around the clock without depending on your personal computer or home internet connection.

What's the difference between installing an EA and installing an MQL5 signal?

Installing an EA means the strategy logic runs directly on your own terminal. An MQL5 signal instead copies trades from a source account to yours automatically once you subscribe, without requiring you to install any file locally — Golden Viper EA offers both options, with the signal available for $30 per month.

Can I install an EA on a mobile version of MT5?

No. Expert Advisors run only on the desktop MT5 terminal (Windows, macOS via compatibility layers, or a VPS). The mobile app can monitor open positions and account activity, but it cannot host or execute EA code.

How do I know if my broker allows automated trading?

Check your broker's account terms, or simply try enabling AlgoTrading and attaching a test EA to a demo chart. If the terminal reports "automated trading disabled by server" despite your local settings being correct, that account type restricts algo trading and you'll need to contact the broker or switch account types.

Should I use the vendor's recommended settings or customize them myself?

Start with the vendor's recommended or default settings, since they typically reflect how the strategy was tested and validated. From there, adjustments like choosing between Conservative, Normal, or Aggressive risk modes are reasonable to tailor to your own account size and risk tolerance, but changing core strategy parameters without understanding their function can move the EA outside the conditions it was designed for.

Myfxbook Verified

Automate Your MT4/MT5 Edge

+€1,485Net · 6-mo (verified)
56%Win Rate (51/91)
24/5Automated
Starting at $199 one-time
Get Lifetime Access →
✓ Instant download✓ Full feature access✓ MT4 & MT5 compatible
NB

Nathan Brooks

Nathan Brooks writes about MetaTrader 4/5, Expert Advisors, and automated XAUUSD gold trading for Golden Viper EA.

Myfxbook VerifiedLive since Jan 2026Public track record

Let Golden Viper EA trade gold for you

Automated XAUUSD trading for MT4 & MT5, verified live on Myfxbook. One-time $199, lifetime access.

Get Lifetime Access — $199