Step 1: Check MT4 EA Installation Path
Ensure the EA file (.ex4 or .mq4) is placed in `MQL4/Experts` folder. If not, EA loading will fail. Use "File > Open Data Folder" to locate it. Restart MT4 after moving files.
Step 2: Enable Live Trading and DLL Imports
Go to Tools > Options > Expert Advisors. Check "Allow automated trading" and "Allow DLL imports". Uncheck "Confirm DLL function calls" if required. Without these, EA shows "smiley face" but won't trade.
Step 3: Resolve Common EA Errors
Step 4: Manage MT4 Account History & Export Data
Click "Account History" tab, right-click, select "Save as Detailed Report" or "Save as Report" for CSV/HTML. Use this for backtesting. To export tick data, use "Tools > History Center > Export".
Step 5: Set Up MT4 VPS for EA Hosting
Rent a low-latency VPS (e.g., Amazon AWS, Forex-specific VPS). Install MT4, copy your profile, and keep terminal running 24/7. In MT4, go to "Tools > Options > Expert Advisors" and enable "Allow WebRequest for listed URLs" if EA needs API access.
Step 6: Mobile & Multi-Asset Setup
MT4 mobile: Add symbol by tapping "Quotes > + > Search". For crypto, add broker-provided symbols like BTCUSD. Use "Charts > Period" for timeframes.
Backtesting with MQL4:
Open "Strategy Tester", select EA, set dates, check "Optimization". Use "View > Strategy Tester Report" for equity curve. Export results as CSV for further analysis.
Step 7: MT5 Error Reference
Common MT5 EA errors: "unsupported function" (update EA), "invalid handle" (check iCustom/indicator parameters). MT5 requires compiled in MT5 build.
Reference: MetaTrader official help (metaquotes.net), MQL4 documentation, Myfxbook EA guides.