How to Install and Configure an EA on MT4
If you want to install and configure an EA on MT4, the process is mostly mechanical: copy a file into the right folder, restart the platform, drag the EA onto a chart, and tick a couple of boxes. The part traders usually get wrong isn't the installation — it's skipping the configuration and risk checks that come after. This guide walks through both, step by step.
What You Need Before You Start
Before touching MT4's folders, get these sorted:
- The EA file itself — usually a
.ex4(compiled, most common) or.mq4(source code) file. - A demo account — never install an unfamiliar EA straight onto a live account.
- MT4 installed and updated — download it from your broker, e.g. Pepperstone or IG both offer their own branded MT4 installers.
- The EA's instructions or set file, if the developer provided one — this tells you the recommended inputs.
- Algo trading permission on your account — some brokers restrict this on certain account types, so check your broker's terms or ask support if unsure.
Also worth knowing: an EA's performance depends heavily on the account it runs on. Spreads, commissions and swap rates all eat into results differently between brokers and account types. Before you commit real money to any automated strategy, it's worth comparing live costs on PipTax's [cost audit tool](/audit.html) and checking the [broker comparison pages](/brokers/index.html) — a strategy that backtests well can still lose money on the wrong pricing model.
Step 1: Open MT4's Data Folder
MT4 keeps EAs in a specific folder, and the easiest way to find it is through the platform itself rather than hunting through Windows manually.
1. Open MT4. 2. Click File in the top menu. 3. Select Open Data Folder. 4. Navigate to MQL4 → Experts.
This is where your EA file needs to live. If you're on Mac using a Wine wrapper or a virtual machine, the path is the same once you're inside the Windows-style file structure.
Step 2: Copy the EA File Into the Experts Folder
Once you're in the Experts folder:
1. Copy your .ex4 or .mq4 file directly into this folder.
2. If the EA came with extra files (DLLs, set files, indicators it depends on), place those in their matching folders — DLLs go in MQL4 → Libraries, custom indicators in MQL4 → Indicators.
3. Close MT4 completely and reopen it. MT4 only scans these folders on startup, so a refresh in the Navigator panel usually isn't enough.
After restarting, open the Navigator panel (Ctrl+N if it's hidden) and expand Expert Advisors. Your EA should now appear in the list by name.
Step 3: Enable Algo Trading Platform-Wide
This step trips up more people than the file copying does. MT4 has a master switch for automated trading:
- Look for the Algo Trading button on the top toolbar (in older builds it says AutoTrading).
- Click it so it turns green/enabled. If it's red or greyed out, no EA will place trades, no matter how it's configured.
- Also check Tools → Options → Expert Advisors tab and make sure "Allow automated trading" is ticked, along with "Allow DLL imports" if your EA needs it.
This is a platform-wide setting, separate from anything on the individual chart.
Step 4: Attach the EA to a Chart
Now attach it to the correct symbol and timeframe:
1. Open the chart for the currency pair the EA is designed for. 2. Drag the EA from the Navigator panel onto that chart. 3. A settings window pops up automatically — don't just click OK. Go to the Inputs tab first (covered next). 4. Once confirmed, you'll see a smiley face icon in the top-right corner of the chart if it's running correctly. A sad face or red X means it's attached but not trading — usually an Algo Trading or permissions issue.
Configuring EA Inputs and Risk Settings
This is the actual "configure" part of learning to install and configure an EA on MT4, and it deserves more attention than most tutorials give it.
In the Inputs tab, common settings to check include:
| Setting | What It Controls | |---|---| | Lot size / risk % | How much is risked per trade | | Stop loss / take profit | Fixed points or ATR-based, depending on EA | | Magic number | Unique ID so the EA only manages its own trades | | Max spread filter | Blocks trades if spread is too wide at that moment | | Trading hours | Restricts activity to certain sessions | | Max open trades | Caps how many positions it can hold at once |
Practical tips:
- Start with the smallest realistic lot size, especially on a first live run.
- If a
.setfile was provided by the developer, load it via the "Load" button in the Inputs tab instead of guessing values. - Write down your starting settings somewhere outside MT4, so you can compare results if you tweak them later.
Testing and Going Live Safely
Never skip demo testing, even for a well-reviewed EA:
- Run it on a demo account for several weeks minimum, ideally through a few different market conditions.
- Check the Journal and Experts tabs at the bottom of MT4 regularly for errors or rejected orders.
- Confirm your broker's execution and costs match what the EA was designed around — a scalping EA, for instance, is far more sensitive to spread and commission than a slower swing-style EA. Compare real costs across brokers using PipTax's [cost audit tool](/audit.html) rather than relying on marketing claims.
- Keep MT4 running continuously — a VPS is common for this, since a closed terminal or lost connection stops the EA mid-strategy.
- Log results weekly: win rate, drawdown, and whether live results are tracking your demo/backtest expectations.
If you're new to automated trading concepts generally, PipTax's [trading school](/school/index.html) has background reading on risk management and platform basics worth reviewing alongside this.
Conclusion
Learning to install and configure an EA on MT4 takes about ten minutes of file-copying and toolbar clicks — the real work is in the configuration and testing that follows. Get the file into the Experts folder, enable Algo Trading both platform-wide and per chart, set your inputs deliberately rather than accepting defaults, and prove the strategy on demo before it touches real capital. And because execution costs can make or break an automated strategy, check your broker's live spreads and commissions on the [cost tool](/audit.html) and compare options on the [broker pages](/brokers/index.html) before switching it on for real.
Key takeaways
- To install and configure an EA on MT4 you place the .ex4 or .mq4 file in the correct Experts folder via MT4's Data Folder, then restart the terminal.
- Algo trading must be enabled both in MT4's global settings and on the individual chart, or the EA will sit idle.
- Always open the Inputs tab before attaching an EA to set lot size, risk per trade, stop loss, and magic number correctly.
- Test any EA on a demo account for at least a few weeks before risking real money, and keep a trading log.
- Spreads, commissions and swaps directly affect EA profitability — check live costs with the cost tool before choosing a broker.
- Keep VPS or PC uptime stable, since most EAs stop working the moment MT4 disconnects or closes.
Frequently asked questions
- Do I need a VPS to run an EA on MT4?
- Not strictly, but most EAs need MT4 open and connected 24/5 to trade. If your PC sleeps, loses internet, or you shut it down, the EA stops working mid-trade. A VPS (virtual private server) keeps the terminal running continuously, which is why many automated traders use one, especially for strategies that hold trades overnight.
- Why won't my EA place any trades after installation?
- The most common causes are: Algo Trading not enabled (top toolbar button greyed out or red), the smiley face icon in the corner not showing, the wrong chart timeframe or symbol for that EA's logic, or the broker not allowing automated trading on that account type. Check the Experts and Journal tabs at the bottom of MT4 for error messages.
- Can I run more than one EA at the same time on MT4?
- Yes, you can run different EAs on different charts, or even the same EA on multiple pairs. Give each one a unique magic number in the Inputs tab so they don't interfere with each other's trade management, and watch your total exposure and margin usage across all of them.
- Is it safe to download EAs from random websites?
- Be cautious. Only run EAs from sources you trust, and always test on a demo account first. An .ex4 file's actual code is hidden, so you can't verify what it does line by line — treat unfamiliar EAs the same way you'd treat any downloaded executable file.
- Will an EA work the same on every broker?
- No. Execution speed, spreads, commissions, and swap charges all vary by broker and directly affect an EA's real-world results, even if the strategy logic is identical. Compare live costs on PipTax's cost tool before committing capital, since a strategy that looks profitable on paper can be eroded by trading costs on the wrong account type.