2019-04-22 17:42:38 +03:00
# Metaquotes MQL5 - Python Backtrader - API
2019-05-14 13:58:26 +03:00
### Development state: Betta (Code is stable, documentation in development)
2019-04-23 17:02:55 +03:00
2019-05-14 13:58:26 +03:00
[Report Bug ](https://github.com/khramkov/MQL5-JSON-API/issues ) or [Request Feature ](https://github.com/khramkov/MQL5-JSON-API/issues )
2019-04-23 16:27:07 +03:00
## Table of Contents
* [About the Project ](#about-the-project )
2019-04-23 17:04:18 +03:00
* [Installation and usage ](#installation-and-usage )
2019-04-23 16:27:07 +03:00
* [License ](#license )
## About The Project
2019-05-14 13:58:26 +03:00
This project was created to work as a broker for Backtrader trading framework. It uses ZeroMQ sockets to communicate. Python side of this project located here: [Python Backtrader - Metaquotes MQL5 ](https://github.com/khramkov/Backtrader-MQL5-API )
2019-04-23 16:27:07 +03:00
2019-04-23 17:02:55 +03:00
Working:
2019-05-14 13:58:26 +03:00
* Change timeframe and instrument symdol
2019-04-23 17:02:55 +03:00
* Account info
* Balance info
* Historical data
* Live data
* Fetching orders/positions
* Order creation
* Cancel order
* Close position
2019-05-14 13:58:26 +03:00
Not working:
2019-04-23 17:02:55 +03:00
* Trades info
2019-04-23 16:27:07 +03:00
2019-04-23 17:02:55 +03:00
## Installation and usage
2019-04-23 16:27:07 +03:00
2019-04-23 17:02:55 +03:00
1. Inastall ZeroMQ for MQL5 [https://github.com/dingmaotu/mql-zmq ](https://github.com/dingmaotu/mql-zmq )
2019-04-23 17:03:34 +03:00
2. Put 'include/json.mqh' from this repo to your host 'include' directoty.
2019-04-23 17:02:55 +03:00
3. Compile the code and attach it to chart in Metatrader 5.
4. This version dosn't support symbol and timeframe changing. You should control it yourself.
2019-04-23 16:27:07 +03:00
## License
2019-05-14 13:59:21 +03:00
Distributed under the GNU License. See `LICENSE` for more information.