How-to guides
How to Install and Use an Expert Advisor in MT5 (Step by Step)
SmartEA Research, 2026-10-24, updated 2026-11-19, 7 min read

Short answer: to use an Expert Advisor in MT5, open File > Open Data Folder, copy the EA's .ex5 file into MQL5\Experts (and any .set presets into MQL5\Presets), refresh the Navigator, drag the EA onto the right chart, load a preset on the Inputs tab, tick Allow Algo Trading and switch on the Algo Trading button in the toolbar. If the EA checks a license or connects to a server, also add its URL under Tools > Options > Expert Advisors > Allow WebRequest for listed URL.
Below is the full process with the details that usually trip people up. The screenshots in MT5 change a little between builds, but the menu names have been stable for years.
Before you start
- MetaTrader 5 installed and logged in to your trading account. MT4 and MT5 files are not interchangeable: an MT5 EA is an .ex5 file.
- The EA file (.ex5) and, if provided, preset files (.set).
- The right account type. Many EAs, including all of ours, need a hedging account. You can see the account type in the terminal's title bar or in the Navigator.
- A demo account for the first run. It costs nothing and shows you how the EA behaves with your broker.
Step 1: Copy the EA into the MQL5 folder
- In MT5 click File > Open Data Folder. A Windows Explorer window opens on the terminal's data folder.
- Open MQL5 > Experts and copy the .ex5 file there. You can create a subfolder to keep things tidy.
- If you have presets, copy the .set files into MQL5 > Presets.
Copying the file into the MT5 installation folder under Program Files is a common mistake. The terminal reads EAs from the data folder, which is usually somewhere under your Windows user profile, so always use File > Open Data Folder to find it.
Step 2: Refresh the Navigator
Open the Navigator (Ctrl+N), right-click Expert Advisors and choose Refresh, or restart the terminal. The EA should now appear in the list.
Step 3: Open the right chart
Every EA is designed for a symbol and a timeframe. Open a chart of the symbol the EA trades (File > New Chart or Market Watch > right-click > Chart Window) and set the timeframe from the toolbar. For example, our gold EAs run on one XAUUSD H1 chart; your broker may call the symbol XAUUSD, XAUUSD.r or GOLD. One chart per EA is usually enough: most modern EAs read other timeframes themselves.
Step 4: Attach the EA and load a preset
- Drag the EA from the Navigator onto the chart, or double-click it while the chart is active.
- On the Common tab, tick Allow Algo Trading. Leave DLL imports off unless the developer says the EA needs them.
- On the Inputs tab, click Load and pick a .set preset, or edit the values directly. Start with the developer's default or most conservative preset.
- Click OK.
The EA's name appears in the top-right corner of the chart. Many EAs also draw an information panel.
Step 5: Turn on Algo Trading
Click the Algo Trading button in the main toolbar so it turns green. This is a terminal-wide switch: while it is off, no EA can open or close trades, even if each EA has Allow Algo Trading ticked. The small icon next to the EA name on the chart shows whether the EA is allowed to trade.
Step 6: Allow WebRequest if the EA needs it
MT5 blocks Internet requests from EAs unless you allow the address. EAs that check a license, read data or send notifications through their own server need this. To allow it:
- Open Tools > Options > Expert Advisors.
- Tick Allow WebRequest for listed URL.
- Add the URLs the developer gives you. For our EAs these are https://smartea.trading (license check) and https://nfs.faireconomy.media (the ForexFactory calendar for the news filter).
- Click OK.
You only do this once per terminal. If it is missing, our EAs show "Allow WebRequest for https://smartea.trading" on the chart and do not open trades. Only the Strategy Tester runs them without a license.
Step 7: Check that it is working
- Open the Toolbox (Ctrl+T) and look at the Experts tab. The EA logs that it has started and any warnings, such as a wrong timeframe, a netting account or a missing WebRequest permission.
- The Journal tab shows terminal messages such as connection problems or rejected orders.
- Do not expect a trade immediately. Many EAs wait for specific hours or conditions. Check the EA's description or panel to see when it trades.
Step 8: Keep it running
An EA only works while the terminal is running and connected. If you close MT5, put the computer to sleep or lose the Internet connection, open trades are not managed (server-side stop losses and take profits still work). For around-the-clock operation most traders use a Windows VPS. Read do you need a VPS for a forex EA for the options.
Updating or removing an EA
- Update: replace the .ex5 file in MQL5\Experts with the new version, then remove the EA from the chart and attach it again (or restart the terminal). Your inputs can be saved first with the Save button on the Inputs tab.
- Pause: switch off Algo Trading, or remove the EA from the chart. Check what the EA does with open trades when it is removed; some EAs offer a dedicated pause setting that stops new trades while managing open ones.
- Remove: right-click the chart > Expert List > Remove, or press the X next to the EA's name.
Common problems and fixes
- The EA is not in the Navigator. It was copied into the wrong folder. Use File > Open Data Folder, then MQL5\Experts, and refresh.
- "Algo trading is disabled". Switch on the Algo Trading button and tick Allow Algo Trading on the Common tab.
- "WebRequest not allowed" or a license message. Add the developer's URL in Tools > Options > Expert Advisors, exactly as given, including https://.
- The EA starts but never trades. Check the symbol, timeframe, account type, spread filter and trading hours. A broker with a different server time shifts time-based strategies.
- Orders are rejected. Check the Journal: common causes are insufficient margin, trading disabled on the account (investor password), or a lot size below the broker minimum.
- The chart is wrong after a restart. MT5 saves open charts and attached EAs in its profile. If you use several terminals, give each its own data folder.
Installing our EAs
If you use one of our gold EAs, the flow is the same: create a free account, download the .ex5 from your dashboard (no .set file is needed: the default inputs are the optimised settings), install as above on an XAUUSD chart (H1), allow WebRequest for https://smartea.trading and https://nfs.faireconomy.media (the calendar for the news filter), and add your account number (demo or real) to your license in the dashboard. One license covers 2 live accounts and 1 demo account. If you would rather not do it yourself, we offer installation on your VPS, or a VPS set up just for you, at checkout. More answers are in our FAQ.
- Smart Rider Gold EA: five-strategy grid basket EA.
- Smart Striker Gold EA: breakout EA with a stop loss on every trade.
- Smart Archer Gold EA: 17 session strategies.
- Smart Breaker BTC EA: 19 breakout strategies for Bitcoin.
Frequently asked questions
Can I run more than one EA in MT5?
Yes. Attach each EA to its own chart. If two copies of the same EA run on the same account, give them different magic numbers so they do not manage each other's trades.
Does the EA keep trading if I close MetaTrader 5?
No. The EA runs inside the terminal. Stop losses and take profits already placed on the broker server still work, but nothing else does. Use a VPS for continuous operation.
Can I use an MT4 EA in MT5?
No. MT4 files (.ex4) do not run in MT5. You need an MT5 version of the EA. Our MT4 vs MT5 comparison covers the other differences that matter for EAs.
How do I test an EA before using it on a real account?
Run it in the Strategy Tester and on a demo account first. See how to backtest an EA in the MT5 Strategy Tester.
Can I use an EA on a Mac?
MetaTrader 5 runs on macOS, but for an EA that must run around the clock a Windows VPS is usually the more reliable choice.
Automated trading carries a high risk of loss. Always start on a demo account, use a conservative preset and only trade money you can afford to lose.
Follow SmartEA Insider on Telegram
SmartEA Insider: results of our own live accounts, new versions and release notes. No trade signals.


