MetaTraderPy
Update of "MetaTraderPy"
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 050d3d776a5fbf1d7f0d4a640429030deb69940f
Page Name:MetaTraderPy
Date: 2012-10-03 19:16:18
Original User: polymeris
Parent: 95cb7ec46ce9c69577ffa56850945c341bd7b9fe
Content

This module offers a wrapper around Bernd's Python integration for MetaTrader. The intent is that you don't have to ever handle MQL code.
Currently only a subset of functionality is supported, but the most important code to implement Expert Advisors is there.
To use this, apart from Bernd's code, you need the metatrader counterpart script: python.mqh

Then, subclass the Advisor class in your own python module. The new class must be called Advisor, too, e.g. test.Advisor.

This class can then easely be invoked with the following MQL4 script (a demo is included in the package):

#define PYTHON_MODULE "test"
#include <python.mqh>


That's all you should have to ever bother with MQL4. Have fun!

Contact
Download latest commit as zip
API