Markets and trading · Independent · 23 Oct 2026

Joaopeuko/Mql5-Python-Integration

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.

← Markets and trading
MQPy: Python bridge for MetaTrader. Build trading bots in Python for MetaTrader 5.

In simple English

Writing trading robots for the MetaTrader 5 platform is hard work in its native language. This tool lets you use Python for that task. You get a set of ready-made templates for common trading strategies. It saves you time if you prefer Python over MetaTrader's built-in language. The project is free under the MIT licence and relies on volunteer maintenance.

What it is

A Python library and command-line helper that generates trading strategy templates for MetaTrader 5. It bridges the gap between Python scripts and the MetaTrader platform.

What it is good for

Solo builders who want to test trading ideas in Python without learning the complex MQL5 programming language.

Stars215
LicenceMIT
Latestv0.6.11 (2025-04-28)checked 23 Oct 2026
Last code change2025-12-15
Written inPython
Setup effort
2 / 5
Payoff
4 / 5
Good
  • Generates starter code for common strategies like moving averages and RSI.
  • Includes a command-line interface to create strategy files quickly.
  • Uses the familiar MIT licence with no commercial restrictions.
Watch for
  • Requires a Windows operating system because MetaTrader 5 runs there.
  • Needs MetaTrader 5 installed and configured on your machine.
  • Relies on a single maintainer for updates and bug fixes.
Replaces

Writing native MetaTrader 5 Expert Advisors in MQL5 from scratch

Works well with

MetaTrader 5 trading platform

Similar repositories
  • ranaroussi/yfinance26k stars

    Downloads market data in Python, but does not execute trades directly inside MetaTrader.

Also reviewed on Repo Radar
  • jesse-ai/jesse8.7k stars

    A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.

  • hummingbot/hummingbot20k stars

    A free framework for writing and running automated trading programs on cryptocurrency exchanges.

  • lballabio/QuantLib7.7k stars

    The long-established free library for pricing and risk-managing financial instruments.

Install
pip install mqpy

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Trading & Investing › Trading Automation › Expert Advisor Builders.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.