Download MetaTrader 5

Function to call some external executable

To add comments, please log in or register
Jin
1539
Jin  

Hey Ross,

Does MQL5 has some function that can execute an external program (both synchronously or unsynchronously) ??

We could used it as a trigger to some external process, in a very simple way (we could call this function from OnTick() event handler).

It would help a lot the integration of Metratrader with something outside, without the use of C dll's, WCF, interops, and others tricks.

 

The signature of this function could be something like: 

void CallingExternProg(string fileName, bool synch); 

 

Thank you. 

Jin
1539
Jin  

I have just figured out that would be better to have a signature like:

 void  CmdShell(string cmd, bool sync);

Example:

...

CmdSheel "..\myprog -param1 -param2", TRUE;

...

 

Andriy Moraru
1261
Andriy Moraru  
That would make all the EAs/indicators/scipts potential major security threats.
To add comments, please log in or register