exchange data outside MT4

 
Hello, I would like to create an application for MT4 that can communicate with an other application I will create on my PC. I've seen that there are many open-source bridges available, one of which is ZeroMQ. However, I couldn't find it for Windows, and besides, I find it complicated for what I need to do. I simply want to retrieve open trades and display them in my own app, and have the ability to close them by clicking on them. I've also looked into alternative methods like pipes, and I downloaded an example, but it doesn't work. I've seen that some people have used TCP sockets, but unfortunately, they don't work and result in many compilation errors in MQL4. I still have the option of exploring file operations. I wanted to know if it's possible to work simultaneously with both the app and MT4 when using file operations, or if concurrency needs to be managed for writing. Does anyone have any suggestions? I'm looking for a simple and concise solution. I would have preferred to use TCP, but it seems complicated. Perhaps calling Netcat or Curl could be an option? If anyone has experience in this matter, I would appreciate any advice. Thank you, regards.
 
faustf:
Hello, I would like to create an application for MT4 that can communicate with an other application I will create on my PC. I've seen that there are many open-source bridges available, one of which is ZeroMQ. However, I couldn't find it for Windows, and besides, I find it complicated for what I need to do. I simply want to retrieve open trades and display them in my own app, and have the ability to close them by clicking on them. I've also looked into alternative methods like pipes, and I downloaded an example, but it doesn't work. I've seen that some people have used TCP sockets, but unfortunately, they don't work and result in many compilation errors in MQL4. I still have the option of exploring file operations. I wanted to know if it's possible to work simultaneously with both the app and MT4 when using file operations, or if concurrency needs to be managed for writing. Does anyone have any suggestions? I'm looking for a simple and concise solution. I would have preferred to use TCP, but it seems complicated. Perhaps calling Netcat or Curl could be an option? If anyone has experience in this matter, I would appreciate any advice. Thank you, regards.

inside your own app :

  • -web app 
  • -desktop app
  • -mobile app
?
 
desktop app, but  i could use MT in VPS therfore  i will prefer  scoket solution also is very complicated , but if  exist somthing just cooked opensource  why not
 
faustf #:
desktop app, but  i could use MT in VPS therfore  i will prefer  scoket solution also is very complicated , but if  exist somthing just cooked opensource  why not

You can start with filesystem solution , and code controls for data access as well (even if its not needed). It will give you some intuition about server-client development , its easier and a good starting point . 

There may be better ways that more advanced coders will point to of course , i've used sockets (in local network) to tether an android app to an mt4 terminal , there was a library i used that was shared here in the codebase . I'll post it if i find it.

Ideally both your app and ex4 talk to a server and exchange data like this , so if the app and the ex4 are the "baskets" , the server is the "bakery" so even if someone can see how your basket was built they wont get your recipe . (bit off topic sorry)

edit : attached the files (not coded by me)

 

o thanks  so much i download now  and  study thanks  again