darwinex / dwx-zeromq-connector

Wrapper library for algorithmic trading in Python 3, providing DMA/STP access to Darwinex liquidity via a ZeroMQ-enabled MetaTrader Bridge EA.
https://blog.darwinex.com/zeromq-interface-python-r-metatrader4/
BSD 3-Clause "New" or "Revised" License
346 stars 229 forks source link

[KERNEL] NO HANDSHAKE ON PUSH SOCKET.. Cannot SEND data #56

Closed ildeb closed 4 years ago

ildeb commented 4 years ago

HI, I can't communicate with mt4 in any way. Any command I try to send I always receive this error message having activated socket monitoring. I installed python anaconda and followed all the described procedures but I can't understand what the problem is. Any suggestions?

Schermata 2019-11-19 alle 20 07 03
BobbyJobling commented 4 years ago

Have you tried restarting MT4 after getting the error msg in Phyton? After MT4 restarts It works for me.

Sent from Yahoo Mail on Android

On Tue, 19 Nov 2019 at 19:09, ildebnotifications@github.com wrote:
HI, I can't communicate with mt4 in any way. Any command I try to send I always receive this error message having activated socket monitoring. I installed python anaconda and followed all the described procedures but I can't understand what the problem is. Any suggestions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ildeb commented 4 years ago

Hi @BobbyJobling, thank you for your quick reply, I tried to do as you suggested but the situation didn't change much. Now monitor socket debug messages appear continuously, as shown in the attached image, but if I send a command there is always the error that appeared before.

Schermata 2019-11-19 alle 21 24 40
BobbyJobling commented 4 years ago

When you restart MT4 the repeated event connect msg should eventually stop and indicate that PUSH and PULL connected successful. Did you get that or did the error msg carried on as in the image you posted?

Sent from Yahoo Mail on Android

On Tue, 19 Nov 2019 at 22:58, ildebnotifications@github.com wrote:
Hi @BobbyJobling, thank you for your quick reply, I tried to do as you suggested but the situation didn't change much. Now monitor socket debug messages appear continuously, as shown in the attached image, but if I send a command there is always the error that appeared before.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

ildeb commented 4 years ago

Hi @BobbyJobling, Those messages appear when I restart MT4 and scroll continuously. I tried again by disabling the debug logs, in this case if I send a new trade command, the first time nothing appears, the second time it displays the error: "Resource timeout ... please try again."

Schermata 2019-11-20 alle 10 33 28
ildeb commented 4 years ago

I solved by reinstalling the MS VC ++ Libraries again