dingmaotu / mt4-server Goto Github PK
View Code? Open in Web Editor NEWTurn MetaTrader Terminal into a Redis compatible server with ZMQ sockets
License: Apache License 2.0
Turn MetaTrader Terminal into a Redis compatible server with ZMQ sockets
License: Apache License 2.0
hi, thanks for great library, is this library support for streaming realtime quote?
In the README you are using the redis-cli.exe
to send commands.
Where do I find it?
Or if it need to be compiled, how to go about it?
Hello, I have already installed mql4-lib and mql-zmq successfully, and copy mt4-server into MQL5/Scripts, then compiled with no error. But the run button in the MetaEditor always disabled, and I can't find it in the MetaTrader。However, I create a HelloWord demo script follow the guide with running it successfully。
Hi,
I would like to know if there is a way to set the parameters of a trading order via the redis client. In particular to the SL, TP, comments and the magic number.
Thank you very much!
I can connect to the Mt4ServerRaw via a redis-py. I'm able to send the command ORDERS
and get a list of open trades. When I give the BUY
, SELL
or CLOSE
commands the server acknowledges the command in the MT4 Terminal's "Experts" tab, for example:
2023.01.23 10:56:54.046 Mt4ServerRaw XAUUSD,M15: >>> Received command: [b"SELL",b"XAUUSD",b"0.25"]
However, my redis client receives the response:
Failed to sell at market with error id (4112): object already exists
I get similar responses (object already exists) for BUY
and CLOSE
. Any ideas?
Hi, is it possible to make the mt4-server to send all the indicator names and values to redis?
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.
I love this idea, mql4 is not my favor.
what's differenc between Mt4ServerRaw.mq4 and Mt4ServerZMQ.mq4?
In MT4 this Script compiles and all the tests pass when running the test script included with mql-zmq. I can connect to the ZMQ server, however when I send a command I get the following error in the "Experts" panel of the Terminal:
2023.01.22 17:25:43.968 Mt4ServerZMQ XAUUSD.i,H1: >>> Error parsing command: RespParseErrorInvalidPrefix
I connect from Python using a textbook REQ socket:
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://localhost:6666")
socket.send(b"ORDERS")
I have tried encoding the command as "utf-16-le" (WIN32 unicode) but this crashes the server. I have also tried the alternate libraries provided in VC2010 folder of mql-zmq. Installed version of ZMQ is 4.3.2. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.