Skip to main content

I developed this library to simplify the process of creating an Expert Advisor in MQL5. While developing in MQL5 can be complex, the same task is more streamlined in Python.

Project description

PyPI - Downloads PyPI PyPI - Wheel PyPI - License

Mql5-Python-Integration (MQPy)

Current Version: v0.6.8

Welcome to the Mql5-Python-Integration project! This project facilitates the integration between MetaTrader 5 (Mql5) and Python, allowing for efficient algorithmic trading strategies.

Table of Contents

Project Update: Changes in Progress

🚧 Work in Progress: v0.6.8 This project is currently undergoing significant changes and improvements. The latest version is v0.6.0, and various enhancements are being made to provide a more robust and user-friendly experience.

📌 Previous Version: v0.5.0 To access the code for the previous version, you can check it out at v0.5.0.

Installation

Note: In order to use this package, you need to have MetaTrader 5 installed on a Windows system with Python 3.8 or later.

To install the package, you can use the following command:

pip install mqpy

Make sure to fulfill the prerequisites mentioned above before attempting to use the Mql5-Python-Integration (MQPy) package.

Usage

Basic Usage

Once installed, you can use the mqpy command to generate the boilerplate code.

Generate the File

To create a template file for a trading strategy, use the following command:

mqpy --symbol <Symbol> --file_name <File Name>

Please change <Symbol> and <File Name> to the desired values. For example:

mqpy --symbol EURUSD --file_name demo

Missing Features/Good Practice

This library has been in existence for several years and was designed to be simple and straightforward. While there are plans to enhance it with features such as logging and other components to improve its overall quality, there are considerations specific to the nature of the Metatrader5 library.

Delicate Metatrader5 Environment

Metatrader5 operates within a highly restrictive environment, and certain practices that may be considered best practices in other contexts might cause trouble for newcomers in software development, which is the main focus of this library. For the sake of simplicity and ease of use, the library currently retains some practices that may not align with conventional best practices.

Alternative Libraries

For users seeking a more advanced library with a similar concept, consider exploring the following alternative:

metatrader5EasyT: A more advanced library that aligns with best practices while providing a similar user-friendly approach. It is also available on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mqpy-0.6.8.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

mqpy-0.6.8-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file mqpy-0.6.8.tar.gz.

File metadata

  • Download URL: mqpy-0.6.8.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for mqpy-0.6.8.tar.gz
Algorithm Hash digest
SHA256 c358a19129b0b631566b5952b61e6d9472f62088b5a5ddbcad4b8da61149f14d
MD5 00d6f02b30b0d8a90123d0a9a6b2552a
BLAKE2b-256 3813700120999034addbf8de7c3394379bb870d2d0a02370e909c3682c088cfd

See more details on using hashes here.

File details

Details for the file mqpy-0.6.8-py3-none-any.whl.

File metadata

  • Download URL: mqpy-0.6.8-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for mqpy-0.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 209c8fe8258df25e19684c1883f46643fe769613087d0cc03d104223a46e61b1
MD5 303e4439e2a40326ae6ff31fa6ff5af7
BLAKE2b-256 cd897f2fea60843591e922d3cbcca1528f0414ce2df3d2e09bbfdd81abd20292

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page