Skip to content

I created this library to streamline the process of developing an Expert Advisor in MQL5. While MQL5 development can be complex, the same task is more straightforward in Python.

License

Notifications You must be signed in to change notification settings

Joaopeuko/Mql5-Python-Integration

Repository files navigation

Mql5-Python-Integration (MQPy)

MQPy Logo

PyPI - Downloads PyPI PyPI - Wheel PyPI - License

A Python library designed to simplify the process of creating Expert Advisors for MetaTrader 5. While developing directly in MQL5 can be complex, MQPy provides a more streamlined experience using Python.

⚠️ Important Notice

Trading involves risk. Always:

  • Use demo accounts for testing
  • Never trade with money you cannot afford to lose
  • Understand that past performance doesn't guarantee future results

Installation

pip install mqpy

Requirements

  • Windows OS
  • Python 3.8 or later
  • MetaTrader 5 installed

Quick Start

Generate a trading strategy template:

mqpy --symbol EURUSD --file_name my_strategy

Features

  • Simple integration with MetaTrader 5
  • Easy-to-use command line interface
  • Basic template generation for trading strategies
  • Support for various trading strategies:
    • Moving Average Crossover
    • RSI-based trading
    • Bollinger Bands strategies
    • Fibonacci Retracement patterns
    • Multi-timeframe analysis
    • Custom indicator integration

Documentation

For detailed documentation, examples, and strategy explanations, visit: https://joaopeuko.com/Mql5-Python-Integration/

Support

MQPy is a free and open-source project. If you'd like to support its development, consider becoming a sponsor.

License

This project is licensed under the MIT License - see the LICENSE file for details.