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 228 forks source link

ERROR on Binding MT4 Server to Socket #118

Closed oliverm91 closed 2 years ago

oliverm91 commented 3 years ago

I'm getting this error: DWX_ZeroMQ_Server_v2.0.1_RC8 EURUSD,H4: [PUSH] ####ERROR#### Binding MT4 Server to Socket on Port 32769.. when starting the DWX expert.

Here is a screenshot of the log: image

these are the inputs initialization: image Publish_MarketData was manually added to the input context adding extern keyword in the code

elvinex commented 3 years ago

Hi, Thank you for raising this point. When there is an error on exiting the EA, there might be issues with connecting to the sockets again. In most cases a restart of MT4 helps (or if that does not work a restart of the PC or VPS). We are currently working on an alternative to the ZeroMQ connector, which will not have dependencies on sockets and third party software anymore and hopefully reduce the number of issues.