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

Pull is not working #116

Closed glikoz closed 2 years ago

glikoz commented 3 years ago

I'm trying to send Trade command from my c# application via NetMQ. (32768 port) after 8 hours, no hope. Any idea?

      ``  using (var pushSocket = new PushSocket(">tcp://localhost:32768"))
        {
            pushSocket.Options.SendHighWatermark = 1000;
            pushSocket.Options.Linger = TimeSpan.FromSeconds(0);

            bool success = pushSocket.TrySendFrame(TimeSpan.FromSeconds(10), order.GetMessage());
            // pushSocket.SendFrame(order.GetMessage());
        }``
elvinex commented 3 years ago

Hi, sorry, I can't offer concrete advice about NetMQ. However, we are currently in the process of writing an alternative to the ZeroMQ connector, which will just use files for communication with MT4 (or MT5). This reduces the third party dependency and makes it much easier to implement solutions in other programming languages. We will publish versions in python, java and C#.

glikoz commented 3 years ago

I can managed to do two-way communication between MT4 and .Net Core 5with Request and Pub/Sub patterns. But communication is async. It works on live system, but does not work at Expert Advisor Strategy Test. I am waiting your implemantation impatiently. Thx.

elvinex commented 2 years ago

Sorry for the late reply. In case you haven't noticed yet, we published the DWX Connect package which is probably better suited for most of the use cases.