Summary: Learn how to fix MT4 EA DLL call errors, enable DLL imports, and resolve EA loading failures with this step-by-step 2026 guide for Windows and Mac.
When your MT4 Expert Advisor (EA) shows "DLL call is not allowed" or fails to load, it usually means DLL imports are disabled. This tutorial covers the exact steps to enable DLLs, fix common errors, and run your EA reliably on MT4 (build 1420+).Step 1: Locate the EA in NavigatorOpen MT4 Platform. Press Ctrl+N to show the Navigator window. Find your EA under "Expert Advisors". Right-click the EA name and select "Modify". (Screenshot: Navigator panel with EA right-click menu)Step 2: Enable DLL Imports in EA PropertiesIn the MetaEditor window that opens, press F7 to open properties. Go to the "Common" tab. Check both boxes: "Allow DLL imports" and "Allow live trading". (Screenshot: Common tab with both options checked)Step 3: Disable Confirmation Prompt (Optional)Uncheck "Ask for confirmation" to let the EA trade automatically without popups. Click OK.Step 4: Apply Settings on ChartDrag the EA from Navigator onto your chart. In the popup window, go to the "Common" tab again. Ensure "Allow DLL imports" is checked. Also check "Allow live trading" for real accounts. (Screenshot: EA settings window on chart)Step 5: Restart MT4 for ChangesClose MT4 completely and reopen. Attach the EA again. If the DLL error persists, check that the .dll file is in the `MQL4\Libraries` folder inside your MT4 data directory (File > Open Data Folder).Reference: MetaQuotes Help Desk – "Expert Advisor Properties: DLL Calls" (2025). Community solution verified on MQL5 forums (January 2026).Note: Only enable DLL imports from trusted sources to avoid security risks.