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

using PyCharm IDE #125

Closed stamina185 closed 2 years ago

stamina185 commented 3 years ago

Has anyone ever run the DWX_ZeroMQ_Connector_v2_0_1_RC8.py using PyCharm IDE? It returns None for any function and can not send request to the Mt4.

elvinex commented 3 years ago

Hi, sorry, I don't have any experience with PyCharm. You need a stable socket connection, therefore I would first try if it works in a simple ipython console without IDE. Most functions indeed return None because the functions only send requests to MT4. MT4 should then return something that is checked in the _DWX_ZMQ_PollData function. Depending on what request you sent, data should appear for example in the _Market_Data_DB or _History_DB variable.