Convert MQL4 to .EX4

Back to topics list To post a new topic, please log in or register
avatar
37
taichifx 2012.05.07 06:12
 
Is there any tool or software that can convert an EA MQL4 to .EX4
The Scary Developments Not Alarming Investors.
The Scary Developments. The stockbroker with a serious witness the development of the share price shortly after the opening of the stock market on the New York Stock Exchange. According to analyst Bernard Condon, a number of developments such as the scary U.S. growth melambannya, Greece that still threaten the euro, China's stock market has just come out of the decline, basically not worrying investors this year, since in general this year is precisely the most smooth and quite profitable.
avatar
2408
deVries 2012.05.07 09:01 #
 
taichifx:
Is there any tool or software that can convert an EA MQL4 to .EX4

MetaEditor
avatar
1002
dabbler 2012.05.07 09:31 #
 
taichifx:
Is there any tool or software that can convert an EA MQL4 to .EX4

Your source code is an MQL4 file (which has an MQ4 file extension - the part after the dot in the file name). It is a text-lke file. As an example this is code from a script ...

int start(){

   string str="";
   str= str + "MODE_DIGITS="        + DoubleToStr(MarketInfo(Symbol(),MODE_DIGITS),0)          +"\n";
   str= str + "MODE_SPREAD="        + DoubleToStr(MarketInfo(Symbol(),MODE_SPREAD),0)          +"\n";
   str= str + "MODE_STOPLEVEL="     + DoubleToStr(MarketInfo(Symbol(),MODE_STOPLEVEL),0)       +"\n";
   str= str + "MODE_FREEZELEVEL="   + DoubleToStr(MarketInfo(Symbol(),MODE_FREEZELEVEL),0)     +"\n";
   str= str + "MODE_TICKVALUE="     + DoubleToStr(MarketInfo(Symbol(),MODE_TICKVALUE),Digits)  +"\n";
   str= str + "MODE_TICKSIZE="      + DoubleToStr(MarketInfo(Symbol(),MODE_TICKSIZE),Digits)   +"\n";
   str= str + "MODE_POINT   ="      + DoubleToStr(MarketInfo(Symbol(),MODE_POINT),Digits)      +"\n";
   str= str + "MODE_MINLOT="        + DoubleToStr(MarketInfo(Symbol(),MODE_MINLOT),3)          +"\n";
   str= str + "MODE_MAXLOT="        + DoubleToStr(MarketInfo(Symbol(),MODE_MAXLOT),3)          +"\n";
   str= str + "MODE_LOTSIZE="       + DoubleToStr(MarketInfo(Symbol(),MODE_LOTSIZE),0)         +"\n";
   str= str + "MODE_MARGINREQUIRED="+ DoubleToStr(MarketInfo(Symbol(),MODE_MARGINREQUIRED),2)  +"\n";
   Comment(str);
   
   return(0);
}

You use the meta-editor to change the code and it will save it with a file extension of MQ4. When you click "compile" it converts the program into something more understandable to a computer, an EX4 file, an "executable" or binary file. This is what you actually run as a program.

 
avatar
37
taichifx 2012.05.07 10:55 #
 
dabbler:

Your source code is an MQL4 file (which has an MQ4 file extension - the part after the dot in the file name). It is a text-lke file. As an example this is code from a script ...

You use the meta-editor to change the code and it will save it with a file extension of MQ4. When you click "compile" it converts the program into something more understandable to a computer, an EX4 file, an "executable" or binary file. This is what you actually run as a program.

Thanks for the lesson Dabbler

avatar
1
ketan79 2013.08.23 17:59 #
 
how to convert mql
Attached files:
  robot.ex4  (23.12 KB)
avatar
14178
RaptorUK 2013.08.23 18:11 #
 
ketan79:
how to convert mql
Would you like a Forum BAN ? Read this: http://forum.mql4.com/57418

avatar
14178
RaptorUK 2013.08.23 18:15 #
 
ketan79:
how to convert mql
No need . . . https://www.mql5.com/ru/code/9127

Back to topics list  

To add comments, please log in or register