I’m new in this forum and also kinda new to python programming. I know mostly MQL4/5.
I’m exploring ZeroMQ and trying to make some basic operations with it. I followed the installation instructions to the letter and actually managed to connect to MT4, send an order and close it completely and partially.
My problem comes when I use _zmq.DWX_MTX_GET_ALL_OPEN_TRADES(). When I many trades open, it does not show anything. Actually, when I to type(_zmq.DWX_MTX_GET_ALL_OPEN_TRADES()) it tells me that its NoneType, so I can’t access any information there.
I did the same connection with a brand new account and entered a couple of trades. When I used _zmq.DWX_MTX_GET_ALL_OPEN_TRADES() it showed the information of trades opened, but the type thing still remains as NoneType.
I did some research in stackoverflow and in this forum and it seems that if you have like +50 trades opened, it won’t show you anything. The curious thing is that regardless of the amount of trades opened and regardless if it shows some info, I always get “NoneType” from “type()”.
Also, I did a _zmq._DWX_MTX_SUBSCRIBE_MARKETDATA(“EURUSD”) and I got bid/ask data in the open trades line.
I read that maybe Visual C++ runtime dll would be a problem, so I installed them and also python json, but the problem persists. I’m actually using jupyter.
Does this happens to anyone else? How can I fix this?
Please, let me know if my notebook is needed.