外汇交易框架Python+MT4

量化知识 10 浏览 2 分钟阅读

学习进度:
前2节已经学完。

目的:
使用Python & ZeroMQ & MT4开发一个自动交易外汇的程序。

成果展示:

python连接mt4:
https://www.youtube.com/watch?v=Qv04zPU7lxQ&list=PLv-cA-4O3y97vTpghgRqiPBjmpgWskYDl
代码:https://github.com/darwinex/DarwinexLabs/blob/master/tools/dwx_zeromq_connector/v2.0.1/EXAMPLES/TEMPLATE/STRATEGIES/coin_flip_traders_v1.0.py
参考:https://www.youtube.com/watch?v=VtOfF-nhhj8

可以参考的资料:
1.国人实现:https://github.com/ns2250225/py-mt4

3

  1. Alex
    Alex

    请问你是怎么编译通过的,我的会报错。在GlobalVariable里,292行:’=’ – type mismatch GlobalVariable.mqh 292 12
    m_hm = new HM;是这一句出问题了

  2. alphaSeven
    alphaSeven

    请问你是怎么编译通过的,我的会报错。在GlobalVariable里
    ‘::’ – unexpected token GlobalVariable.mqh 200 46
    ‘create’ – undeclared identifier GlobalVariable.mqh 200 48
    ‘::’ – unexpected token GlobalVariable.mqh 211 32
    ‘create’ – undeclared identifier GlobalVariable.mqh 211 34

    1. sunny
      sunny

      应该是GlobalVariable太旧了,去下面网址下载最新的。
      Zmq/Context.mqh这个文件也要更新。我更新以上两个文件解决了。
      如果没解决那就把文件都更新一下吧
      https://github.com/dingmaotu/mql-zmq/tree/master/Include

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

相关文章