Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues receiving responses when executing code in PyCharm #35

Open
matkiller333 opened this issue Aug 26, 2021 · 2 comments
Open

Issues receiving responses when executing code in PyCharm #35

matkiller333 opened this issue Aug 26, 2021 · 2 comments

Comments

@matkiller333
Copy link

Hello everyone,
So here is my problem, I am working on a web scraper to perform trades depending on information gathered on the internet.
However, when I try executing requests inside a python script, such as _zmq.DWX_MTX_GET_ALL_OPEN_TRADES() I get no answers from the server and cannot retrieve any information under _zmq._Market_Data_DB or _zmq._History_DB.

Moreover, if I try to open an order with zmq.DWX_MTX_NEW_TRADE(order) I get the Resource timeout.. please try again. error.
(MS VC++ is downloaded and up to date; verbose = True)

If using a python shell, however, I can pass orders that are received by MetaTrader4 and I am getting the expected output from other functions.

Therefore, this is leading me to believe that maybe there is a problem receiving responses from MetaTrader4 when using a script instead of a shell command. Any idea on how to fix this would be really appreciated.
Thank you.

Running python 3.9 on Windows 10, Using MetaTrader4 and coding in PyCharm

@gentstats
Copy link

Hi mat,

I have experienced similar problems when working with pycharm -with the darwinex library, as well as with some other libraries- has pycharm something special in terms of module management? I am not an expert on the subject, but I suggest yout use VS or spyder as an alternative to pycharm. If you only need trade management/execution, MetaTrader's python libraries might be useful to you.

Have a nice day,
Daniel

@TheSnowGuru
Copy link

Hey, check this trading with python framework on mt5 or mt4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants