Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MQPy Logo

PyPI - Downloads PyPI PyPI - Wheel PyPI - License

Mql5-Python-Integration (MQPy)

Current Version: v0.6.9

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

⚠️ TRADING RISK WARNING

IMPORTANT: Trading involves substantial risk of loss and is not suitable for all investors.

  • Always use a demo account with fake money when testing strategies
  • MQPy is provided for educational purposes only
  • Past performance is not indicative of future results
  • Never trade with money you cannot afford to lose
  • The developers are not responsible for any financial losses incurred from using this software

Table of Contents

Project Update: Changes in Progress

🚧 Work in Progress: v0.6.9 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.

Metadata

Release files for mqpy 0.6.10rc40

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mqpy 0.6.10rc40
File Size Uploaded Provenance Actions
mqpy-0.6.10rc40.tar.gz 30.3 kB Without provenance Details for mqpy-0.6.10rc40.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mqpy 0.6.10rc40
File Interpreter ABI Platform Actions
mqpy-0.6.10rc40-py3-none-any.whl Python 3 none any Details for mqpy-0.6.10rc40-py3-none-any.whl

Total release size: 52.2 kB

Release files / mqpy-0.6.10rc40.tar.gz

Download URL mqpy-0.6.10rc40.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fe92869b2ab4b1ae669d3d32bc40a85888fde48b50bc2d5f5ccb0b0445a36658
BLAKE2b-256 checksum
How to use checksums
2d229f98a5e635a6adc10955d8a72732491b5c18b2c914192aa85dc5de881730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / mqpy-0.6.10rc40-py3-none-any.whl

Download URL mqpy-0.6.10rc40-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fe785f37086c2fb7091b5d542b88de9cc8b716276f27755d0b98266b27c2bdf
BLAKE2b-256 checksum
How to use checksums
911e09d91ba9ce51c2dc41398658fdc683d5e8c5b5fcbdba255aef29b875f222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for mqpy 0.6.10rc40

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page