NavigationUser loginWho's new
Who's onlineThere are currently 0 users and 36 guests online.
|
Tools - Easy MQL4 Compiler!Hi folks, I'm receiving tens of messages everyday -in the forum- asking me about how to compile the Expert Advisors, Indicators, Script, and Libraries?How to know the kind of the MQL4 Program? I automatically answer: 1- Download the program (.mq4) 2- Copy it to the /experts folder if it was an expert advisor, and to the experts/indicators folder if it was an indicator, and to experts/scripts if it was a script and it was a library copy it to experts/libraries folder. 3- Open the file in MetaEditor (by double clicking it). 4- Hit F5 to compile the program.
We all were novices and I'm not bored from the answers, but it must be an easier method to compile the MQL4 program and tell the trader the type of the program (expert, indicator, script, or library). Ok fans! That's EMC. Easy MQL4 Complier:
Saturday and Sunday are very boring to any forex lover, but today I opened my Visual Basic and played with it to create a little tool for you (and me) that easily compile the MQL4 programs.
How to use EMC:The first time you download the program you have to open it to set the options of the program (Figure 1); these are the options available in the current version:
Figure 1 - EMC Options
Compile & open in MetaEditor:Choose this option if you want the EMC to open the mq4 file in MetaEditor after compiling it.
Compile Only:Choose this option if you want the EMC to compile the mq4 file only.
Note: Whether you have chosen Compile & open in MetaEditor or Complie only the EMC will copy the mq4 file to the right MetaTrader folder (/experts folder if it was expert, /indicators folder if it was indictor, /scripts folder if it was script and /libraries folder if it was library).
Delete source after coping:In must case you download the mq4 program to your desktop or any other folder outside the MetaTrader folders, you can check this option to delete this file after coping it to the MetaTrader folder (experts folder if it was expert, indicators folder if it was indictor etc).
Note: If you compile an mq4 program inside MetaTrader folder this option will not work because it's not logical to delete the mq4 file from the MetaTrader folder.
Tell me the type of the file:Check this option if you want EMC to tell you the type of the complied file (expert, indicator, script, or library) (Figure 2).
Figure 2
Uninstall (delete context menu):Click this button to uninstall the Compile context menu (Figure 3). You can still open the EMC to install the menu again or you can drag the mq4 file to the EMC program icon.
Save:Click this button to save the option you have set.
Cancel:Click this button to exit the program without saving the options.
To compile any file has the extension .mq4 simple right click it and you will find the menu item Compile (Figure 3), just click it and that's all.
Figure 3 - Use EMC
Caution: Use the Delete source after coping option and the EMC program in general at your risk.
By codersguru at 2006-03-11 16:05 | Tools | printer-friendly version | login or register to post comments
|