MQL4 - automated forex trading   /  

Forum

Login | Register | Language: ru cn en
Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

BULK MASS COMPILE MQ4 TO EX4

Back to topics list To post a new topic, please log in or register
avatar
76
AUDUSD H1 Volume Spread Analysis
AUDUSD H1 Volume Spread Analysis
Leonardo Barata | 24 October 2014, 17:10 | Views: 69
In this trading range there appears to be more selling than buying. In trading ranges I never buy or sell when the prices are in the middle of it, like they are right now. I wait for prices to get near the resistance if there appears to exist selling, or to break the support. Analytical VSA Trader 
avatar
Moderator
28386
Rosh 2007.04.12 15:22 #
 
Delete mqlcache.dat file and restart MetaTrader 4.
avatar
368
codersguru 2007.04.12 19:57 #
 
You can use command line and create batch file to do this:

1- Find your metalang.exe path, it will be the same path of MetaTrader (here my path is D:\Program Files\MetaTrader 4).

2- Create a batch file and name it compile.bat (or any name you prefer).

3- Write these lines into the bat file then save it:
cd D:\Program Files\MetaTrader 4
metalang -q "D:\Program Files\MetaTrader 4\my_first_mql4_script.mq4"
(Don’t forget to change the path to you MetaTrader installed path).

4- Run the batch file.

5- Enjoy. ;)


 
avatar
76
habagobal 2007.04.12 21:24 #
 
What I mean is I had many collection such as indicator, ea, etc. in .mq4 file extension, than I want to compile all of them to .ex4 in one of time like bulk mass compile not per one file. Any conclusion ?
 
avatar
368
codersguru 2007.04.12 22:17 #
 
I told you:

cd D:\Program Files\MetaTrader 4
metalang -q "D:\Program Files\MetaTrader 4\file_1.mq4"
metalang -q "D:\Program Files\MetaTrader 4\file_2mq4"
metalang -q "D:\Program Files\MetaTrader 4\file_3.mq4"
....
metalang -q "D:\Program Files\MetaTrader 4\file_100.mq4"




 
avatar
76
habagobal 2007.04.12 22:51 #
 
Can I use this command

cd D:\Program Files\MetaTrader 4
metalang -q "D:\Program Files\MetaTrader 4\*.mq4"

So, it compile all of *.mq4 file to *.ex4 extensions.
 
avatar
Moderator
5756
stringo 2007.04.13 10:54 #
 
no. metalang does not support wild cards
avatar
Moderator
71425
MetaQuotes 2007.04.13 11:42 #
 
habagobal wrote:
I had many code program in mq4 file extension and want to compile all of them with bulk mass compile to ex4 in a time not one by one. Anybody how to do it ?

To recompile:
- all experts: delete /experts/mqlcache.dat
- all indicators: delete /experts/indicators/mqlcache.dat
- all scripts: delete /experts/scripts/mqlcache.dat
- all libraries: delete /experts/libraries/mqlcache.dat

Then restart MetaTrader 4 Client Terminal. That's all.
 
Back to topics list  

To add comments, please log in or register