Download MetaTrader 5
To add comments, please log in or register
Publish your articles and improve your rating!
och
485
och 2011.04.07 17:14 

Hi developper team,

As dll are not allowed during optimization process, that's mean the same ea, if it is using a dll for some purpose (different than trading), can not be used in real and optimization process. As soon as an include clause is linking to a dll, all remote agents will failled during initialisation step. Can we imagine to add some conditionnal include clause as :


if(MQL5InfoInteger(MQL5_DEBUGGING))

  #include "mydll.dll"

end if

Regards,

Olivier 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties - Documentation on MQL5
Rashid Umarov
Admin
11809
Rashid Umarov 2011.04.08 09:09  

See the terminal Help - http://www.metatrader5.com/en/terminal/help/tester/tester_agents:

Remote Agents

The tester allows working with the unlimited number of external (remote) agents using all available computation powers. All you need for using an external agent is knowing the address and port for connecting to it, and its password.

To save traffic and disk space, as well as for security reasons:

  • on remote agents, messages of Expert Advisors (Print() function), as well the messages about trade operations, are not recorded to the Journal;
  • DLL call is prohibited on remote agents.

It means you can use DLL just on local agents. For that check "Allow DLL imports"

  • Allow DLL imports — to extend their functionality, mql5 programs can use DLL libraries. This option allows determining a default value for the "Allow DLL imports" parameter when starting programs. It is recommended to disable import when working with unknown Expert Advisors.

/
To add comments, please log in or register