Download MetaTrader 5

Messages between MT4 terminals on the same network

To add comments, please log in or register
jan100
145
jan100  

Hi,

I have two VPS servers running on the same network (VPS1 and VPS2). 

I want to send a message from one MT4 terminal running on VPS1 to a different MT4 terminal which is running on VPS2.

Latency is not extremely important, however this process should not take longer than 500ms.

What do you think would be the best way to code this? Thanks in advance! 

Carl Schreiber
7301
Carl Schreiber  
I would use a socket if they would work - but maybe you can use a socket based on PowerShell 'talking' to PowerShell via mapped memory files.
Stanislav Korotky
21622
Stanislav Korotky  
jan100:

I have two VPS servers running on the same network (VPS1 and VPS2). 

I want to send a message from one MT4 terminal running on VPS1 to a different MT4 terminal which is running on VPS2.

Latency is not extremely important, however this process should not take longer than 500ms.

What do you think would be the best way to code this? Thanks in advance! 

If you can afford running a special web-server in the same network, you could push/poll data to it via WebRequest. The benefit of this approach is that you can extend number of interconnected terminals in future (if necessary) easily.
To add comments, please log in or register