← 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
- Open MetaTrader.
- Click
File → Open Data Folder. - Open
MQL4for MT4 orMQL5for 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.ex5Install Rule
Installation should use the compiled files inside the terminal data folder:
- Open
File → Open Data Folder. - Inside
MQL4orMQL5, put the DLL intoLibraries. - 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 bemetaapi.ex4mq5/metaapi.mq5— MT5 EA source, compiled output should bemetaapi.ex5metaapi_interface.dll— terminal DLL bridge
What To Open In The Terminal
File → Open Data Folderto reach the runtime folders.View → Navigatorto show the Navigator panel.- Open
Navigator → Expert Advisors. - Find
metaapiand drag it onto a chart. - Enable
Allow DLL importsin the EA dialog. - Enable terminal-level
AutoTrading/Algo Trading.