# MT4 EA Not Loading on Mac? Complete Troubleshooting Guide
Problem: EA Won't Load or Shows "Invalid EA"
You drag your Expert Advisor onto a chart, but nothing happens. Or you see errors like "invalid EA," "custom indicator not found," or DLL load failures. This is one of the most common frustrations for Mac MT4 users[citation:1].
Step 1: Enable Auto-Trading Permission
MT4 blocks EA execution by default. You must manually enable it:
1. Click Tools > Options (or press `Ctrl+O`)
2. Navigate to the Expert Advisors tab
3. Check "Allow automated trading"
4. Also check "Allow DLL imports" if your EA requires external libraries[citation:2][citation:6]
> Screenshot tip: The EA tab shows four checkboxes. The top two are essential for most EAs.
Step 2: Verify File Placement
Incorrect file placement is the #1 cause of loading failures. Use the correct folders:
| File Type | Extension | Destination Folder |
| :--- | :--- | :--- |
| EA (compiled) | .ex4 or .ex5 | `MQL4/Experts/` or `MQL5/Experts/` |
| EA (source) | .mq4 or .mq5 | `MQL4/Experts/` or `MQL5/Experts/` |
| Custom Indicator | .ex4 or .mq4 | `MQL4/Indicators/` |
| DLL Library | .dll | `MQL4/Libraries/` |
To locate your data folder:
Step 3: Fix DLL Import Errors
If you see "dll 'xxx.dll' not found" or "cannot load library," follow this checklist:
3.1 Enable DLL imports (already covered in Step 1)
3.2 Place DLL in the correct folder
3.3 Check 32-bit vs 64-bit compatibility
3.4 Whitelist MT4 in antivirus software
Step 4: Restart and Check the Experts Log
After making changes:
1. Restart MT4 completely
2. Open the Terminal window (press `Ctrl+T`)
3. Click the Experts tab
4. Look for error messages when you drag the EA onto a chart
Common log errors and their meanings:
| Log Message | What It Means |
| :--- | :--- |
| "invalid EA" | File corrupted or compiled for different MT build |
| "custom indicator not found" | Missing dependency in Indicators folder |
| "cannot load library" | DLL missing, wrong folder, or 32/64-bit mismatch |
| "export function not found" | DLL function name mismatch[citation:2] |
Step 5: Mac-Specific Troubleshooting
Mac users running MT4 via Wine or similar emulation face additional challenges:
If problems persist:
Summary Checklist
References:
1. CSDN Q&A – Mac MT4 EA loading failure solutions (2025)
2. CSDN Q&A – MT4 DLL import error fixes (2025)
3. Exness Help Center – VPS EA setup guide (2025)
4. CSDN Blog – EA loading troubleshooting for beginners (2026)
5. MQL5 Forum – .NET DLL loading path issues (2024)