Summary: Your MT5 EA won’t trade or load? This guide covers the 5 most common configuration mistakes: wrong file location, compilation errors, missing DLLs, disabled automated trading, and broker incompatibility.
Step 1: Check Your EA File Location – The Most Common Mistake
Open MT5. Click ‘File’ → ‘Open Data Folder’. Navigate to ‘MQL5’ → ‘Experts’. Your EA files (.ex5 or .mq5) must be placed here, NOT in the MQL4 folder or installation directory [citation:1][citation:7]. Screenshot: Data folder path showing MQL5/Experts directory.
Step 2: Compile the EA Properly (For .mq5 Files)
If you have source code (.mq5), open MetaEditor (F4). Load your EA file. Click the ‘Compile’ button (F7). The error panel at the bottom must show ‘0 errors, 0 warnings’. A green checkmark confirms success [citation:1][citation:2]. Screenshot: MetaEditor showing successful compilation.
Step 3: Enable DLL Imports if Required
Many advanced EAs need DLL files. Go to ‘Tools’ → ‘Options’ → ‘Expert Advisors’. Check ‘Allow DLL imports’. For news filters, also add required URLs under ‘Allow WebRequest for listed URLs’ [citation:3][citation:4]. Screenshot: Expert Advisors tab with DLL imports checked.
Step 4: Turn On Automated Trading and Verify
Click the ‘AutoTrading’ button on the MT5 toolbar (turns green). Then go to ‘Tools’ → ‘Options’ → ‘Expert Advisors’ → ensure ‘Allow automated trading’ is checked [citation:2][citation:4]. Screenshot: AutoTrading button highlighted on toolbar.
Step 5: Check the Experts Tab for Red Errors
Press Ctrl+T to open the Toolbox. Click the ‘Experts’ tab. If you see red text, read the error carefully. Common errors include: ‘invalid stops’ (broker distance too small), ‘no connection’ (server issue), or ‘DLL calls not allowed’ [citation:2][citation:5]. Screenshot: Experts tab showing error messages.
Step 6: Restart MT5 and Re-attach the EA
After all fixes, completely close MT5 (right-click taskbar icon → ‘Exit’). Reopen MT5. Drag your EA from the Navigator window onto a chart. The chart corner should show a smiley face (😊) [citation:4]. Screenshot: Smiley face icon on chart corner.
Reference: MetaQuotes MQL5 Documentation; CSDN EA Configuration Guide 2026 [citation:1][citation:9].