Any good examples of setting up a TCP Socket in MT4 to listen for calls?
locactus:
Any good examples of setting up a TCP Socket in MT4 to listen for calls?
Any good examples of setting up a TCP Socket in MT4 to listen for calls?
... blows own trumpet: https://www.mql5.com/en/blogs/post/706665
Haha Thanks once again JC
Hi, I'm not sure if this forum thread is still active, but i've tried your socket library.. its weird. The message says it can connect to a regular websocket server without problem, but the server never detected incoming connection.. the websocket server is behind cloudflare, would this pose a problem?
@Modular Economy #: Hi, I'm not sure if this forum thread is still active, but i've tried your socket library.. its weird. The message says it can connect to a regular websocket server without problem, but the server never detected incoming connection.. the websocket server is behind cloudflare, would this pose a problem?
It is old code. Did you read the blog's own discussion section below it? There may be hints in those comments.
Please be aware that TCP socket is NOT websocket.
You might want to check this out:
https://www.mql5.com/en/articles/8196
You might want to check this out:
https://www.mql5.com/en/articles/8196
Websockets for MetaTrader 5
Oh dear, Thank you @Soewono Effendi for this..
I am rather new to socket communication.. Was not aware that TCP socket and Websocket are different. (Spent a lot of hours just to realise that Socket.io and websocket are also different)
Also I have tried your link, which sounds just like what I needed, however this is using MQL5.
Is there any way to use that code for MQL4?
Thank you in advance.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register