I know of a way how it was done with MT4 by OpenForexPlatform (just google), look for MT4-Integration there. They made a C++ DLL that communicated with C#.net via TCP/IP. The C++ DLL was called in a specialized (but simple) MT4 expert advisor.
On the other hand, I wonder if it could not be made easier, like just calling a C#.net DLL directly from an expert advisor.
see the files below - please note that they are under GPL open source license, and I only redistribute them here, without any legal responsibility.
(author- and ownership is by openforexplatform.com)
I'm also very interested to know how MT5 improves on MT4's ability to communicate with an external agent.
I integrate my platform using 2 EA's. One EA does Socket communications incoming, and executes Orders as the result of commands.
The other EA is responsible for using Socket comms to return status, etc to my Client software.
I can tell you that, although this works, it has a lot of undesirable aspects.
For example, both EA's are in loops and the Feedback EA has to be in a tight timed wait loop looking for multiple variables.
The OrderManager accepts a command and dispatches, but has to use Global Variables to post status, etc. which the Feedback EA tries to grab as quickly as possible.
So, this Feedback EA has to constantly loop, looking for Global Variables, getting their values, clearing them, and then sending Socket messages back to my client.
So, although this works, it is a very poor integration solution for sending Orders to a MetaTrader terminal.
I'd LOVE to be able to access a MetaTrader 5 API, and direct it to do the trading, and provide me with much better status info and control.
The most desirable solution would be if I could control MT5 as an in-process subsystem to my client.
Any ideas about a better integration arrangement? .NET components? "Headless" operation?
FutureScalperFX
- www.mql5.com
- 2011.02.09
- investeo
- www.mql5.com
http://tradeplatform.codeplex.com
- tradeplatform.codeplex.com
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I would like to send order entry and exit signals from an external software application I am developing in C# .NET.
Could anyone help me understand how I can accomplish this?
Thanks!!!