Download MetaTrader 5
To add comments, please log in or register
Do you have a trading signal? Publish it in your blog as well!
zversky
38
zversky 2014.08.11 20:05 

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!

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.08.12 00:38  
Try removing
#property strict
zversky
38
zversky 2014.08.12 08:26  
deysmacro:
Didn't help
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.08.12 09:31  
#property strict
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   Print("Hello World!");
  }
//+------------------------------------------------------------------+
qjol
3243
qjol 2014.08.12 09:44  
works just fine for me
qjol
3243
qjol 2014.08.12 09:53  

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)

zversky
38
zversky 2014.08.12 11:10  
deysmacro:


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

Can you confirm, that you are on XP64, thanks
zversky
38
zversky 2014.08.12 11:19  
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 ?

qjol
3243
qjol 2014.08.12 11:34  
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

zversky
38
zversky 2014.08.12 11:46  
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?

/ /12
To add comments, please log in or register