Can't start expert AND script simultaneously via config startup file(+)

 

Hi, first of all thank's for a good update!

But seems there is a lot of work to do more))


Windows XP 64 and MT4 Build 670 in Program Files (x86)

I'm launching fresh installed MT4 via \Program Files (x86)\MT4\start.cmd:

cd /d "%~dp0"
terminal boot_r.bin /portable
exit


boot_r.bin is:

Login=****
Password=*****
Server=FXCM-EURDemo01
AutoConfiguration=true
Symbol=EURUSD
Period=M1
Expert=runner.ex4
Script=informer.ex4


MQL4\Experts\runner.mq4 (just to be shure - it's an empy file, no compile errors at all):

#property strict
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   
  }
//+------------------------------------------------------------------+


MQL4\Scripts\informer.mq4 (dummy too):

#property strict
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   
  }
//+------------------------------------------------------------------+


Output in \MQL4\Logs is:

19:37:11 Expert runner.ex4 EURUSD,M1: loaded successfully
19:37:11 Script informer.ex4 EURUSD,M1: loaded successfully
19:37:11 informer.ex4 EURUSD,M1: Invalid EX4 file (6)
19:37:11 informer.ex4 EURUSD,M1: global initialization failed
19:37:11 Script informer.ex4 EURUSD,M1: removed
19:37:13 runner.ex4 EURUSD,M1: initialized


As You can see informer.ex4 not started. If I start it manually by drag'n'drop - it runs fine across with EA.

Running NOT in portable mode with(without) moving files to Application Data folder respectively gives the same result.

In builds before 600 this worked fine.

What am I doing wrong, how to start Expert AND Script simultaneously at startup?

Thanks!

 
Try removing
#property strict
 
deysmacro:
Didn't help
 
#property strict
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   Print("Hello World!");
  }
//+------------------------------------------------------------------+
 
works just fine for me
 

ho, i was able to reproduce your error and i found your problem

can you manually login to the account (with the login detailed in the bin file from that particular folder) ?

i assume not

either the username or password are incorrect or the srv file is missing (or something like that)

 
deysmacro:


same output as in first post - didn't work
 
qjol:
works just fine for me

Can you confirm, that you are on XP64, thanks
 
qjol:

ho, i was able to reproduce your error and i found your problem

can you manually login to the account (with the login detailed in the bin file from that particular folder) ?

i assume not

either the username or password are incorrect or the srv file is missing (or something like that)

yes, I can

as I said before in hand mode everything works fine, the problem is just in autostart mode

even after failed autostart (when informer didnt fire) I can add informer manually to the graph window and it works fine

Seems like two ex4 conflicts with each other when theya loaded into to memory without any delay

Is there any /debug switch for teminal.exe ?

 
zversky:

Can you confirm, that you are on XP64, thanks


nop

zversky:

 

Seems like two ex4 conflicts with each other when theya loaded into to memory without any delay


upload only one of them and in the code upload the other one

although i don't think that's the problem but give it a try

 
qjol:


nop


upload only one of them and in the code upload the other one

 

Yes, this is the way my system worked years ago, but it is not the way I like it!

Not comfortable by many reasons.

That's why I'm trying to find out any solution, or find out it's just a bug


By the way - is this forum bugtracked by developers?

Reason: