Download MetaTrader 5

Need help please - UDP packet instead of email alert

To add comments, please log in or register
Joachim Reichelmann
745
Joachim Reichelmann 2015.06.18 08:43 
Hi all,

i have a problem to solve and would be thankful for help.

Is there any way to use UDP for MT4 alerts?

https://en.wikipedia.org/wiki/User_Datagram_Protocol

In the moment my indi alerts by email, but i need a function in MT4, that sends this email alert triggered by an normal indicator as a UDP packet instead of email.

Does anyone knows, how i can solve that...

Thank you very much for help

Best wishes Jo

User Datagram Protocol - Wikipedia, the free encyclopedia
  • en.wikipedia.org
UDP uses a simple connectionless transmission model with a minimum of protocol mechanism. It has no handshaking dialogues, and thus exposes any unreliability of the underlying network protocol to the user's program. There is no guarantee of delivery, ordering, or duplicate protection. UDP provides checksums for data integrity, and port numbers...
Alain Verleyen
Moderator
31134
Alain Verleyen 2015.06.18 09:03  
You need to use WinApi for such things, nothing standard in mql4 available.
Joachim Reichelmann
745
Joachim Reichelmann 2015.06.18 09:24  
Alain Verleyen:
You need to use WinApi for such things, nothing standard in mql4 available.

Thank you Alain,

 

means need to be coded in C or C++...

or must be coded in MQ4? 

Alain Verleyen
Moderator
31134
Alain Verleyen 2015.06.18 13:13  
Joachim Reichelmann:

Thank you Alain,

 

means need to be coded in C or C++...

or must be coded in MQ4? 

Could be coded in mql4 (I guess) but using WinApi call (MSDN functions).
Joachim Reichelmann
745
Joachim Reichelmann 2015.06.18 20:50  
Alain Verleyen:
Could be coded in mql4 (I guess) but using WinApi call (MSDN functions).
Can you code this Alain?
ngfast
7
ngfast 2015.06.19 01:28  

I have a plugin for MT4 that I use for cross-platform communication that I can send along if you like. It's just a standard DLL that takes a name and has dummy slots that are then synced on the other side. ip/port specified by external config file. 

To add comments, please log in or register