Giter Site home page Giter Site logo

wachana / pymt4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from henryatman/pymt4

0.0 0.0 0.0 502 KB

PyMT4 - Python bindings for the Metatrader 4 trading platform Project origin By rmawatson, he didn't want to be disturbed, So don't to bother him even you need help, thanks

License: GNU Lesser General Public License v2.1

Python 4.33% C++ 80.37% C 0.43% MQL4 14.87%

pymt4's Introduction

PyMT4 - Python bindings for the Metatrader 4 trading platform

Project origin By rmawatson, he didn't want to be disturbed,

So don't to bother him even you need help, thanks


Overview -

This project provides bindings for using the Metatrader4 MQL API in python.

The bindings are provided through a tcp connection with the metatrader 4 client via pymt4_host.mq4 using boost::asio. The python session connects to the host, and can then make API calls natively in python. An experimental OnTick handler is provided to register charts to notify the python session of new ticks.

A simple example in python:

Prerequisites:

  • Metatrader has a chart running pymt4_host.mq4, allowing execution of dll calls.
  • PyMT4.pyd is available on PYTHONPATH
  • For OnTick events ,a separate chart for the desired pair should be running pymt4_ontick.mq4.

The PyMT4 module contains most of the API. Although there are a raft of updated backported from MT5. Most of these are not added yet. Custom Indicators are also not supported yet.

Please see Examples folder for usage.


BTW:

It's seem have some problem with iTime with python call, if someone could fix it, it would be great.

Enjoy it

pymt4's People

Contributors

henryatman avatar

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.