Named Pipes between MT4 and a C# application

MQL4 Integrazione

Specifiche

Description:

I have already a c# application that manages my actual trading positions in my metatrader account and the lotsize of the positions which should be oppend.


I am using max. 5 charts with different or all with the same underlying an they should communicate with the c# application. The communication should work with named pipes


The communication between each metatrader 5 ea and my c# manager works always in the same manner:

1. My c# manager is already running.

2. Now I put my ea on the chart.

3. The ea send’s with the first tick an init-message (with its underlying and timeframe) to the c# manager on the default pipe. As init-answer the c# manager sends the name of the “pipe-connection” which should be used from this ea to communicate with the c# manager.

4. On each of the following ticks the EA sends on this given pipe “pipe-connection1” an information string (if actual an position is open) and as an answer the ea gets a string from the c# manager (if it has to open a position). That’s the end of the communication, till the next tick follows.


...the same steps are working parallel with the other 4 charts.

...so the c# manager has the default pipe name for the init messages and 5 pipe-connection-name ( for each of the 5 charts)



The followings cases must be regarded:


-If more than 5 different ea’s would apply for a pipe at the server, the c# server manager should defeat their init-message and show’s an alert window

-If the connection between the metatrader an the c# manager is broken or restarted, the ea’s are sending an init-message again, and get their communication pipe name.

...If there was already an open position from this ea of the c# manager connection (which is marked on the comment of an open position), the ea sends this comment in the Init Message to get the same

pipe-connection-name as before.

-If i use the ea on 5 of the same underlyings this should also work!!!

-If the ea is taken (closed) from one chart(underlying), this pipe connection should be closed an is now free for a further(another) underlying. Maximum 5 different or same underlyings at one time i use!



What I need:


-I can programm the metatrader part by myself. I only need a project with the working communication which I discriped above. This communication part (protocol over windows named pipes) I integrate in my existing project, of course I need the souce code for the metatrader and the c#. And also the clear description for the code.

Con risposta

1
Sviluppatore 1
Valutazioni
(34)
Progetti
80
34%
Arbitraggio
13
31% / 54%
In ritardo
19
24%
Gratuito
2
Sviluppatore 2
Valutazioni
(9)
Progetti
20
70%
Arbitraggio
1
0% / 100%
In ritardo
9
45%
Gratuito
3
Sviluppatore 3
Valutazioni
(54)
Progetti
164
43%
Arbitraggio
43
47% / 16%
In ritardo
58
35%
Gratuito
Pubblicati: 1 codice

Informazioni sul progetto

Budget
10 - 150 USD
IVA (19%): 1.9 - 28.5 USD
Totale: 11.9 - 178.5 USD
Per lo sviluppatore
9 - 135 USD
Scadenze
da 1 a 3 giorno(i)