Download MetaTrader 5
To add comments, please log in or register
Find out how to add a video in the messages editor
Rex_Loner
123
Rex_Loner 2015.03.23 06:31 

Hi,

I have some question regarding Build. If I create EA in my MT4 Build 765, can someone else use my EA if he/she still using MT4 Build less than 765?

 

Rex 

whroeder1
13613
whroeder1 2015.03.23 15:42  

SW can be backwards compatible, but it is extremely unlikely that it is forward compatible in all aspects. It's likely either the EA or the terminal would crash.

  1. If Metaquotes checks for that, it may not load.
  2. You can always check:
    int OnInit(){
       int     build = TerminalInfoInteger(TERMINAL_BUILD)
       if(build < __MQLBUILD__){
          PrintFormat("Terminal=%i, must be at least %i", build, __MQLBUILD__);
          return INIT_FAILED;
       }
       :
    Predefined Macro Substitutions - MQL4 Documentation


Rex_Loner
123
Rex_Loner 2015.03.24 05:01  
Thank you so much
/
To add comments, please log in or register