mt4-server icon indicating copy to clipboard operation
mt4-server copied to clipboard

Error on commands

Open ildeb opened this issue 6 years ago • 6 comments

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.

ildeb avatar May 29 '19 23:05 ildeb

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.

dingmaotu avatar May 30 '19 01:05 dingmaotu

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?

ildeb avatar May 30 '19 14:05 ildeb

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)

dingmaotu avatar Jun 01 '19 05:06 dingmaotu

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 avatar Jun 03 '19 18:06 ildeb

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

ildeb avatar Jun 11 '19 16:06 ildeb

Hey @ildeb , picoredis works with Mt4ServerRaw.

rkahun avatar Apr 16 '21 12:04 rkahun