Global initialization failed Error

 

Hello,

I have an EA that returns this error when placed on FTMO mt5 terminal. The error does not pop up when placed on the standard mt5 terminal.


If anyone know what might cause this error, so I can review the code and fix it, that would be much appreciated.


Regards.

 
If you see this error message in your MT4/5 terminal's Journal tab log, it means that your computer or VPS had an operating system upgrade and you need to install your MQL5.com Market purchases again.

So, login into your MQL5 account in MT4/5 >> Tools >> Options >> Community and then go to the Market tab of the Terminal window >> Purchased (in MT4) or in the Navigator window >> Market folder >> My Purchases (in MT5) and then click the Install button on the right side of your purchase to install it again.
 
Eleni Anna Branou #:
If you see this error message in your MT4/5 terminal's Journal tab log, it means that your computer or VPS had an operating system upgrade and you need to install your MQL5.com Market purchases again.

So, login into your MQL5 account in MT4/5 >> Tools >> Options >> Community and then go to the Market tab of the Terminal window >> Purchased (in MT4) or in the Navigator window >> Market folder >> My Purchases (in MT5) and then click the Install button on the right side of your purchase to install it again.

Thank you for your response.
The EA is not a market purchase EA. I own the code and source files for the EA. I recompiled the code and uploaded it once again to the FTMO mt5 terminal, but it still gives the same error.

 
Saad Janah #:

Thank you for your response.
The EA is not a market purchase EA. I own the code and source files for the EA. I recompiled the code and uploaded it once again to the FTMO mt5 terminal, but it still gives the same error.

Contact the author then for help and advice, if this isn't your EA.

 

Why do you ask the same thing twice? Did you see my answer?

Forum on trading, automated trading systems and testing trading strategies

What does "failed with Code 0" mean ? (Global initialization failed)

Stanislav Korotky, 2024.09.03 20:14

Please, show logs for both terminals where their builds are specified. As you may know, MQ builds terminals for processors with different instruction sets, and ex5-files can also be compiled for different instruction sets (X64 regular, AVX, AVX2, AVX512). Hence not only the same terminal exe-file can be compatible with one PC and incompatible with another, ex5-program can also run on one instance and fail to run on another.

When installed via installator, MQ detects your processor and installs proper version of the terminal. If ex5-files are distributed freely, you should make sure (ask the author) to compile them for your processor, or always use X64 regular settings - they are universal.


 
Stanislav Korotky #:

Why do you ask the same thing twice? Did you see my answer?


I did not get notified of your response on the comment.

 
Saad Janah #:

Thank you for your response.
The EA is not a market purchase EA. I own the code and source files for the EA. I recompiled the code and uploaded it once again to the FTMO mt5 terminal, but it still gives the same error.

You need to debug and fix your code.

Something on this broker is leading to an error on a global initialization (global or static variable).

 
I managed to solve the issue, the error was triggered by some DLL files and dependencies.
Updated the code to work without those files.
The EA runs with no issues now.