Skip to content

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.

Notifications You must be signed in to change notification settings

danmi1258/PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop

Repository files navigation

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

PyTrader

Documentation for connecting Metatrader 5 with Python with a simple drag and drop EA. A full suited solution and fully tested and fast and efficient.

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 python

installation flow:

alt text

MT4 python

installation flow:

alt text

myLib documentation

See documentation here

Linux installation:

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

Python MT5 EA

Clone & Test Now :) - Enjoy

Python MT4 EA

Clone & Test Now :) - Enjoy

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages