Trading
Installing an Expert Advisor (EA) on MT4/MT5
4 min readUpdated July 2026
An Expert Advisor is an automated trading program for MetaTrader. Running it on your VPS means it trades 24/7, even when your own computer is off.
1. Copy the EA into MetaTrader
- In MT4/MT5 open File → Open Data Folder.
- Go into MQL4/Experts (MT4) or MQL5/Experts (MT5).
- Copy your .ex4/.ex5 (or .mq4/.mq5) file there.
- Back in MetaTrader, right-click 'Expert Advisors' in the Navigator and choose Refresh.
2. Enable automated trading
- Click the 'AutoTrading' (or 'Algo Trading') button in the toolbar — it should turn green.
- In Tools → Options → Expert Advisors, tick 'Allow automated trading'.
3. Attach the EA to a chart
- Open a chart for the symbol you want to trade.
- Drag your EA from the Navigator onto the chart.
- In the dialog, confirm 'Allow automated trading' and set your inputs, then click OK.
- A smiley face in the top-right of the chart means the EA is active.
Test any new EA on a demo account first. Past performance never guarantees future results.
Related guides
Ready to run your EAs 24/7 on a low-latency VPS?
Get started