Download MetaTrader 5

How can I find MT4 build from MQL4?

To add comments, please log in or register
Develop trading robots to order. Make profit with Freelance service!
Bogdan Alin Baltatu
2924
Bogdan Alin Baltatu 2015.05.21 14:25 

Hello,

I want to find MT4 build from mql4 code. How can i do this?

The reason is my programs work only in MT4 build 765 or highter.

Thanks 

whroeder1
14480
whroeder1 2015.05.21 18:08  
   int     build = TerminalInfoInteger(TERMINAL_BUILD)
   if(build < __MQLBUILD__){
      PrintFormat("Terminal=%i, must be at least %i", build, __MQLBUILD__);
      return INIT_FAILED;
   }
To add comments, please log in or register