• Stars
    star
    205
  • Rank 190,178 (Top 4 %)
  • Language
    Python
  • Created about 6 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎰 用Python来写MT4的自动化交易脚本

py-mt4

用Python来写MT4的自动化交易脚本 🎉

原理

  • 使用MQL4原生库调用ZERO-MQ作为消息服务端
  • 使用其它语言,如Python作为客户端调用接口

机器环境

  • win10
  • python3.5

安装教程

启动EA脚本

  • 打开MT4,在左下方把ZeroMQ_MT4_EA_Template_Edited.mq4托入想交易的图形中, 并允许EA添加外部DLL和自动交易
  • 右上角会有个哭脸,说明没启动
  • 点击【自动交易】,哭脸变笑脸则启动成功
  • 修改和运行自动化EA脚本.py进行测试

效果