Back to home

MetaAPI Docs

EA Install

Install the DLL and EA into the correct MT4 or MT5 directories, then attach the EA to a chart and allow DLL imports.

Open The Correct Folder In MT4 / MT5

  1. Open MetaTrader.
  2. Click File → Open Data Folder.
  3. Open MQL4 for MT4 or MQL5 for MT5.

Exact Directories

MT4
File -> Open Data Folder
  MQL4/
    Libraries/
      metaapi_interface.dll
    Experts/
      metaapi.ex4

MT5
File -> Open Data Folder
  MQL5/
    Libraries/
      metaapi_interface.dll
    Experts/
      metaapi.ex5

Install Rule

Installation should use the compiled files inside the terminal data folder:

  • Open File → Open Data Folder.
  • Inside MQL4 or MQL5, put the DLL into Libraries.
  • Put the compiled EA into Experts.
  • For MT4 use .ex4; for MT5 use .ex5.

Repository Files

  • mq4/metaapi.mq4 — MT4 EA source, compiled output should be metaapi.ex4
  • mq5/metaapi.mq5 — MT5 EA source, compiled output should be metaapi.ex5
  • metaapi_interface.dll — terminal DLL bridge

What To Open In The Terminal

  • File → Open Data Folder to reach the runtime folders.
  • View → Navigator to show the Navigator panel.
  • Open Navigator → Expert Advisors.
  • Find metaapi and drag it onto a chart.
  • Enable Allow DLL imports in the EA dialog.
  • Enable terminal-level AutoTrading / Algo Trading.