# How to Fix "EA Loading Failed" Error in MT4 — Complete Step-by-Step Guide
When you drag an EA onto a chart and see "EA loading failed" or "DLL not found", don't panic. This is one of the most common MT4 EA errors and usually has a simple fix.
Step 1: Enable DLL Imports (Most Common Fix)
This solves 90% of EA loading failures.
1. Open MT4 → Click Tools → Options
2. Go to the Expert Advisors tab
3. ✅ Check "Allow DLL imports"
4. ✅ Check "Allow automated trading"
5. Click OK and restart MT4
> [Screenshot position: Tools → Options → Expert Advisors tab with both checkboxes highlighted]
Step 2: Check the EA File Location
EA files must be in the correct folder:
1. Click File → Open Data Folder
2. Navigate to MQL4 → Experts
3. Paste your `.mq4` or `.ex4 Restart MT4 or right-click Navigator → Refresh
Step 3: Fix "DLL Not Found" Error
If the error mentions a missing DLL:
1. Go to MQL4 → Libraries folder in the Data Folder
2. Copy the required `.dll` file into this folder
3. Restart MT4
Step 4: Check the Journal Log for Exact Error
1. Click View → Terminal ( Ctrl+T)
2. Go to the Experts tab
3. Look for the exact error message (e.g., "trade context is busy", "invalid stops")
4. Match it with the common errors table below:
| Error Message | Cause | Fix |
|--------------|-------|-----|
| DLL not found | Missing library file | Copy DLL to Libraries folder |
| Trade context busy | EA already managing a trade | Wait or disable EA temporarily |
| Invalid stops | SL/TP too close to price | Increase stop distance |
Step 5: Re-compile the EA (If You Have Source Code)
1. Press F4 to open MetaEditor
2. Open the `.mq4` file → Click Compile (F7)
3. Fix any errors shown in the toolbar
4. Save and return to MT4 → Refresh Navigator → Drag EA again