Guide · Trading Bots · Updated November 2026
How to Install an MT5 Expert Advisor (EA)
Installing a trading bot in MetaTrader 5 takes about five minutes. Follow these steps exactly, and always test on a demo account before using real money.
Before you start
- MetaTrader 5 installed on your Windows PC, logged in to a demo or live account.
- The EA file (.ex5) — sent to you by email after you buy the bot.
- Five minutes and a demo account to test on first.
Step 1 — Open the MT5 data folder
In MT5, go to File → Open Data Folder. A Windows Explorer window opens. Inside it, open the MQL5 folder, then the Experts folder. This is where every EA lives.
Step 2 — Copy the EA file in
Copy your downloaded .ex5 file into the Experts folder. If you got a .mq5 source file instead, copy it in the same way, then double-click it — MetaEditor opens — and press F7 to compile it. A successful compile creates the .ex5 file next to it.
Step 3 — Refresh the Navigator
Back in MT5, look at the Navigator panel (Ctrl+N if it is hidden). Right-click Expert Advisors and choose Refresh. Your bot should now appear in the list.
Step 4 — Attach it to a chart
Open the chart the bot is built for — for example XAUUSD, H1 for GoldSniper — then drag the EA from the Navigator onto the chart. A settings window opens: check the inputs (lot size, risk, trading hours), tick Allow Algo Trading if it asks, and click OK.
Step 5 — Switch Algo Trading ON
Click the Algo Trading button in the MT5 toolbar so it turns green. If it is off, the bot sits on the chart and does nothing — this is the most common reason an EA "does not trade". You should also see a small smiley/hat icon in the top-right of the chart, which means the EA is active.
Step 6 — Test on demo for 7 days
Let the bot run on a demo account for at least a week before any real money. Watch that it opens and closes trades the way you expect, and that the daily loss guard works. Only then consider a live account — and start small.
Common problems
My EA is on the chart but takes no trades
Check three things in order: (1) Algo Trading is ON (green), (2) the chart symbol and timeframe match the bot's requirements, (3) the market is open — gold does not trade on weekends, and some bots only trade London/New York hours.
MT5 says the EA is "not compiled" or shows an error
You probably copied a .mq5 file without compiling. Open it in MetaEditor and press F7. If it still fails, re-download the file — it may have been corrupted in the download.
Can I run the bot on my phone?
No. The MT5 phone app can only watch trades — an EA runs only in the Windows desktop MT5. To keep it running while your PC is off, use a VPS.
Does the bot need my broker password?
Never give your broker login to anyone. A bot runs inside your own MT5, on your own account. Botifyer never asks for your money or your broker login.
See All 5 Bots → Next: How to Backtest an EA →
Risk disclaimer: Trading forex and gold involves substantial risk of loss and is not suitable for every investor. Past performance does not guarantee future results. These tools enforce discipline; they do not predict the market. Never trade with money you cannot afford to lose.
👁 Total Visits: …
📖 Trading Book — Hadi Gold Trading Strategy · 📰 Crypto News
© 2026 Botifyer · www.botifyer.com
