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
342 stars 227 forks source link

dwx server script (2.0.1) for mt4 throws compilation error on a remote host but works fine locally #84

Closed bhavyalatha26 closed 4 years ago

bhavyalatha26 commented 4 years ago

Hi,

I just set up a remote server on AWS (windows 10) and installed Darwinex MT4 client terminal. Then I added the server script DWX_ZeroMQ_Server_v2.0.1_RC8.mq4 into the Expert Advisors panel.

Client Terminal Installed : Darwinex MT4

However the script does not compile and throws some compilation error at line 56,

// CREATE ZeroMQ Context
Context context(PROJECT_NAME);

Error Message : empty class 'Context' cannot be used

I am unable to reproduce this error on my local machine , it happens only on the remote host. NO additional changes were made to the server script .

PFA the image of all the errors . Screenshot (2)

Please let me know if I missed any other configuration or need to make any changes further.

NOTE : I already imported the necessary libraries from mql-zmq library and performed the per-requisite steps.

TIA.

Regards, Bhavya.

bhavyalatha26 commented 4 years ago

Ok , so I figured out the issue. The issue seems to be with mql-zmq libraries that we use while setting up MT4.

They recently made some commits (3 days ago) and that seems to cause these compilation issues.

An older version of their code works fine ( I had an older version of their code on my local, so it was functional on my local machine). I just copied them to my remote machine and it works fine now.

I raised an issue on their repository

Closing the issue.

Regards, Bhavya.