Download MetaTrader 5

Problems initializing an expert advisor

To add comments, please log in or register
cafe
15
cafe  

The expert advisor was compiled without errors and warnings, indeed it appears in the navigator list, but when I try to attach it to a chart, I’m afraid it doesn’t work.

I checked a topic in the forum about a similar situation, there were suggestions like uninstall the program, so I already tried that and it doesn’t work yet.

I appreciate if somebody has something to share about it.

Thanks.

cplayer
118
cplayer  

Please check the build of the platform: help -> About... -> on the bottom left you get Version 5.00 Build xxx

Now do the same for MQL5 language editor: Help -> About MetaEditor... -> on the bottom left you get MetaEditor 5.00 build yyy

I had the same issue with custom indicators and when I reinstalled (didn't have to uninstall first, just downloaded a web installer and ran it) and made sure that both version are identical (xxx==yyy) the indicators work.

Every time the platform runs an auto update I get version differences between the client terminal and the MQL5 editor and the indicators compile but can't run on the chart.

I don't know if it is a bug.

I run on Vista with AVG (that throws a warning of "Themida" on every update. I don't know if it has something to do with it.)

Hope it helps.

Rashid Umarov
Admin
12162
Rashid Umarov  

Check options to allow autotrading



cafe
15
cafe  
cplayer:

Please check the build of the platform: help -> About... -> on the bottom left you get Version 5.00 Build xxx

Now do the same for MQL5 language editor: Help -> About MetaEditor... -> on the bottom left you get MetaEditor 5.00 build yyy

I had the same issue with custom indicators and when I reinstalled (didn't have to uninstall first, just downloaded a web installer and ran it) and made sure that both version are identical (xxx==yyy) the indicators work.

Every time the platform runs an auto update I get version differences between the client terminal and the MQL5 editor and the indicators compile but can't run on the chart.

I don't know if it is a bug.

I run on Vista with AVG (that throws a warning of "Themida" on every update. I don't know if it has something to do with it.)

Hope it helps.

    

   First,  thanks for your help,

   I checked what you suggested and both the client terminal and MetaEditor have same versions.

   I’m afraid the problem persists. 

cafe
15
cafe  
Rosh:

Check options to allow autotrading

 

  Thanks for your help, 

  I have had into account the autotrading options but it still fails.

  The others expert advisors included in the client terminal such as Moving Average and MACD work properly but mine does not.

        The are the messages shown in the journal tab of toolbox window:

                      -expert xxx (EURUSD,H1) loaded successfully

                     -Initializing of xxx (EURUSD,H1) failed

                     -Expert xxx (EURUSD,H1) removed 

 

Samuel Olowoyo
2257
Samuel Olowoyo  

Maybe you need to check the codes you have in the OnInit() function of your EA for any (runtime) error. I had similar experience. 

cafe
15
cafe  
olowsam:

Maybe you need to check the codes you have in the OnInit() function of your EA for any (runtime) error. I had similar experience. 

 

   Thanks. 

Samuel Olowoyo
2257
Samuel Olowoyo  
cafe posted  :

 

   Thanks. 

You are Welcome! Hope the issue is now resolved. 

To add comments, please log in or register