• Stars
    star
    662
  • Rank 67,632 (Top 2 %)
  • Language
    Python
  • Created about 4 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Open Source Trading Strategies & End-to-End solution connecting Metatrader4 & Metatrader5 💹 with Python with a simple drag and drop EA. Fully tested bug free & efficient solution for live & paper trading⭐ Full Documentation ready. Lightweight, efficient and stable implementation 🔥

PyTrader - Drag & Drop MT4 & MT5 Python API Connector for Metatrader

PyTrader

The Pytrader ecosystem consists of a python script and a MT5 or MT4 EA. Further for the licensing an indicator is used. Documentation for connecting Metatrader 5 and metatrader 4 with Python using a simple drag and drop EA. A full suited solution and fully tested , fast and efficient.

The communication between the python script and the EA is based on websockets. EA is the Server and the python script the Client. It is always query(function / python script) and output(data / server). The EA does not need to run on same computer as the python script is running on. On our Github link you will find the python script, the EA’s, full documentation, and a Pytrader example script showing how to call the functions. For questions we have also a discord channel. In demo (without licensing indicator) also full functionality, but for a limited number of instruments (EURUSD, AUDCHF, NZDCHF, GBPNZD and USDCAD).

name

Check versions: Pytrader version _06 works with EA version .06.

Python MT4 & MT5 EA connecor

Easier more than ever before! Connecting Metatrader5 with Python strategies with this simple drag and drop EA has never been so easy! A full & fast solution tested with real trading. Amazing capabilities like download bar data & creating a live feed for your strategies with 1 line of code. Enjoy.

Drag & Drop Python Connector for MT4 & MT5

Growing list of features:

  • Python login to Metatrader5 Terminal
  • Python Connection keep alive function
  • Get MT5 Account Info→ Python client
  • Python Client Open New Orders → MT5 (Verify the sending, and verifying the receiving the order ,in MetaTrader5)
  • Python Client can Change(take profit,stop loss) /Cancel/Open Orders → MT5
  • Python Close/Partly Close Positions → MT5
  • MT5 Execution info→ Python client
  • MT5 → Python Get all Open orders & Positions
  • MT5 → Python Get static account information
  • MT5 → Python Get dynamic account info like [balance, equity, margin, free margins]
  • MT5 → Python Get instrument information [pip value, max lot, tick size, tick value]
  • MT5 → Python Get last tick data [date, bid, ask, vol ]
  • MT5 → Python Get bar data [date, open, low, high, close, vol]
  • MT5 → Python Get last X ticks array[date, bid, ask, last,vol]
  • MT5 → Python Get last X bars array[date, open, low, high, close, vol]
  • MT5 → Python Get indicator data from MT5 to your script - coming soon!

MT5 installation flow:

alt text

MT4 python

installation flow:

alt text

myLib documentation

See documentation MT5 here See documentation MT4 here

Linux installation:

You can run your strategies on linux through wine.
Here is a ready docker + Wine: here

Get the EA working for all instruments:

MT5 python ==> Get FULL Version here

MT4 python ==> Get FULL Version here

More Repositories

1

InterpreterGPT

🤖 ChatGPT Python Interactor 🐍 Interact with OpenAI's ChatGPT 🚀 within Python 🐍! Have interactive conversations, run generated code, create Python files, and more! ⚡️ Easily integrate AI-powered chatbot capabilities into your applications. Get started now! 🎉
Python
12
star
2

ChunksGPT

🚀 Digest Codebase via ChunksGPT 🤖 Welcome to the Codebase ChunksGPT Open.ai Assistant🌟 a tool to supercharge your development workflow! This powerful assistant helps you process, understand, and improve your codebase with the power of ChatGPT. 🎯
Python
9
star
3

Stocks-Futures-Financial-Time-series-Tick-Bar-Data

Financial Time tick data Features is a collection stocks, forex, crypto, commodities and indices data of Features & Data for everyone. Feel Free to contribute more data and features.
6
star
4

SimpleFast

AI generated Coding Language
Python
5
star
5

PythonNinja-Python-NinjaTrader8-trading-api-connector-drag-n-drop

End-to-End solution connecting Ninjatrader8 & Python with a simple drag and drop EA. Fully tested bug free & efficient solution for live & paper trading⭐ Full Documentation ready. Lightweight, efficient and stable implementation 🔥
4
star
6

TheSnowGuru

Config files for my GitHub profile.
1
star
7

linkedin-automation-plugin

This chrome ext will help you automate connections using your linkedin profile.
JavaScript
1
star
8

RouteAI

RouteAI is an intelligent routing system that optimizes API integrations. It uses OpenAI for data analysis, Kafka for message queuing, Redis for endpoint management, and Traefik for load balancing. Monitoring is done with Prometheus, and logs are managed using Loguru.
Python
1
star
9

PyCommrce

Connect to any platform with python
Python
1
star