How can I automatically compile an mt4 EA?

tierry

Trader
Dec 6, 2019
10
0
17
43
How can I automatically compile an mt4 EA?
With this I mean...
How can I from a windows command line, invoke the metatrader compiler, point to a file for it to compile it.
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,604
1,366
144
Odesa
www.earnforex.com
You can do this using metaeditor.exe with /compile option:
Code:
metaeditor.exe /compile:"full path to the .mq4 file"

For example:
Code:
metaeditor.exe /compile:"C:\Users\User1\AppData\Roaming\MetaQuotes\Terminal\582F1420F7EA955F22B2F71E2A1B68A0\MQL4\Indicators\TrendStats.mq4"