dingmaotu/mt4-server

Error on commands

ildeb opened this issue · 6 comments

ildeb commented

HI,
I installed the necessary packages, and started the Mt4ServerZMQ script leaving the default 6666 port. I also installed the ridis-cli client and started the connection to the above port but when I try to run a command, for example orders I get the following error:
Error: Protocol error, got "\xff" as reply type byte
What am I doing wrong?
The operating system is Windows server 2016 on a VPS.

You may want to use Mt4ServerRaw because it uses raw tcp connection, which is the same as redis-cli. You use Mt4ServerZMQ only when you are using a zmq based client.

ildeb commented

Hi @dingmaotu,
I confirm what you said, using Mt4ServerRaw it worked.
Do you know if it is possible to use a redis client from python?

It is possible, but you need to use some low level methods instead of wrapped commands (the protocol is same but the commands are different)

ildeb commented

Hi @dingmaotu,
thanks for the reply, sorry if I still ask you a question ... how do you send the commands to set the stop loss and take profit?

ildeb commented

this project seems almost dead ... nobody contributes, nobody talks ..

Hey @ildeb , picoredis works with Mt4ServerRaw.