GithubHelp home page GithubHelp logo

mt4-server's People

Contributors

dingmaotu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mt4-server's Issues

It is awesome idea!

I love this idea, mql4 is not my favor.

what's differenc between Mt4ServerRaw.mq4 and Mt4ServerZMQ.mq4?

Error on commands

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.

How to integrate and run 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。

Redis server: Object exists

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?

ZMQ Response error

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?

Indicator values

Hi, is it possible to make the mt4-server to send all the indicator names and values to redis?

How to send trades commands with SL and TP

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.