Before Installing on MetaTrader 5
MetaTrader 5 uses the MQL5 language and compiled .ex5 binaries. Keep these prerequisites in mind before moving files:
- Correct Binary Format: Ensure you have an
.ex5or.mq5file. MT4.ex4files are incompatible with MT5. - Account Accounting Mode: Check whether your MT5 broker account is set to Hedging or Netting mode (displayed in the terminal title bar or account details). Multi-order grid or simultaneous long/short EAs typically require a Hedging MT5 account.
- Preset & Indicator Paths: Store
.setfiles inMQL5/Presetsand custom indicators inMQL5/Indicators.
Step-by-Step MT5 EA Installation
- Locate the EA File: Unzip your download folder and find the
.ex5(compiled) or.mq5(source) Expert Advisor file. - Open the MT5 Data Folder: Launch MetaTrader 5, click File in the top menu, and choose Open Data Folder.
- Navigate to MQL5 > Experts: Open the MQL5 directory and double-click the Experts folder (you may optionally place EAs inside a subfolder like
Experts/Advisors). - Paste the EA File: Copy the
.ex5or.mq5file intoMQL5/Experts. - Refresh Navigator or Restart MT5: Press
Ctrl+Nto open Navigator, right-click Expert Advisors, and select Refresh. If you placed an.mq5source file, double-clicking or refreshing triggers compilation into.ex5. - Enable Algo Trading Globally: Navigate to Tools > Options > Expert Advisors, check Allow Algorithmic Trading, and click OK. Make sure the main toolbar Algo Trading button displays a green play icon.
- Attach the EA to the Chart: Open the intended currency pair, gold, or index chart on the required timeframe, drag the EA onto the chart, confirm Allow Algo Trading in the Common tab, configure risk parameters on the Inputs tab, and click OK.
- Verify Active Status: Check the top-right corner of the chart for the EA name next to an active graduation-cap icon (colored/blue-green rather than gray/red) and confirm clean initialization in the Toolbox Experts tab.
MT5 Verification Checklist
- Check Symbol Suffixes: Brokers often label pairs
XAUUSD.pro,EURUSDm, orUS30.cash. Attach the EA to the exact tradeable chart symbol listed in Market Watch. - Inspect Toolbox Logs: Always check both the Experts tab (EA prints and initialization errors) and the Journal tab (broker connection and order server replies).
- Test on Demo First: Run Strategy Tester using Every tick based on real ticks and validate live behavior on a demo terminal before committing real capital.
ACTION CHECKLIST
- Locate the MT5 EA file: Extract any compressed package and locate the .ex5 or .mq5 file.
- Open MT5 Data Folder: In MetaTrader 5, click File > Open Data Folder.
- Open MQL5 Experts: Navigate into MQL5 > Experts inside the Data Folder window.
- Paste the EA file: Copy the .ex5 or .mq5 file into MQL5/Experts.
- Refresh Navigator: Press Ctrl+N in MT5, right-click Expert Advisors, and click Refresh (or restart MT5).
- Enable Algo Trading: Open Tools > Options > Expert Advisors, enable Allow Algorithmic Trading, and activate the Algo Trading toolbar button.
- Attach EA to chart: Drag the EA onto the target symbol and timeframe, check Allow Algo Trading under Common, configure Inputs, and click OK.
- Verify status icon and logs: Confirm the active EA icon in the top-right chart corner and check the Experts tab for clean startup.