Passing the data from C#.net GUI to MT4 and Vice Versa

 

Simply I want to devlop  only GUI in C#.net and passing as input to MT4 terminal to draw the indicator and send the order to exchange. How we can achieve this functionalities ? Here is  no issue of client and server communication  bcoz C# application and MT4 terminal are running on same machine. I want to know how we can pass the input from C#.net application to Mt4 terminal for further processing and  how we can get the data from MT4 terminal to C#.net application? please resolve this problem?

Here multiple instance can be handled by C#.net GUi?

 

I've done something like this (but using visual basic becouse I was lazy, but the same technique can be used with C#)

I used txt files to comunicate with one program to another, course it's not the fastest way to do it, MQL4 can't send/recieve files faster then a per tick basis, plus the data has to be convertedfrom the ram, to a txt file on the HDD, then converted back to data in the ram, but unless you need blazing fast comunication, it'll work

and incase your wondering, i have not found a way yet to communicate via Dll's.

Hope that helps.