Download MetaTrader 5

Running EA with imported DLL

To add comments, please log in or register
Do you want to write a technical indicator? Find solution in MQL5 Reference!
artem.reznikov
9
artem.reznikov 2011.02.04 14:06 
In MT5 when you start the terminal with the configuration file
command line: terminal.exe /config:FileName.ini
a script or an expert advisor loads which is specified in the section of INI file such as:

[StartUp]
Script=ScriptName
Expert=ExpertName
Symbol=EURUSD
Period=M15
In this case, if the expert advisor uses imported DLL libraries and there is a record allowing import in the appropriate section of the INI file:

[Experts]
AllowDllImport=1
then scripts are running and work without any errors, but expert advisors are unloaded with mistake:
DLL loading is not allowed
artem.reznikov
9
artem.reznikov 2011.02.07 14:46  

Can anyone from MetaQuotes answer is there a way to allow DLL import for expert advisors or maybe I am doing something wrong?

Anton
1846
Anton 2011.02.08 12:55  
artem.reznikov:

Can anyone from MetaQuotes answer is there a way to allow DLL import for expert advisors or maybe I am doing something wrong?

Fix will be available at next build.
artem.reznikov
9
artem.reznikov 2011.02.10 14:28  
antt:
Fix will be available at next build.
Thank you for your help!
To add comments, please log in or register