DLL command execution

 

Hello all,

I am considering linking a trading system currently written in C# to trade an account from the MT4 platform. The system is essentially finished as a standalone executable file set. In order to accomplish this quickly and with a minimum amount of redesign, I am considering writing a DLL that is able to access commands MT4.

My idea at present is to create a library which is able to effect trade execution in MT4. For example, standalone system says long EUR/USD, then MT4 gets the command to execute a long trade on the pair. This approach does not currently seem to be a mainstream approach and I am wondering if it is even possible.

Thanks, in advance

 
Possible==yes. I don't have direct experience with dlls. I'll recommend searching for articles on the subject. Here's one article to begin with.
 

I don't understand why you need dll for trade execution on MT4 side. You can use MQL EA for that. You may need custom library (dll) for the IPC part (communication between EA and the external program)