This repository contains a python client and a MQL5 server connector using text files
The code implements the two side "PUSH-PULL" pattern, based on the following diagram:
The python client sends a message throw a PUSH file to a receiver PULL file on the mql server side. When the server (the metatrader client terminal), which is reading another file, process the message, PUSHes the answer in another file binded in this case to the receiver PULL file in the python client.
- Open Order. Opens an order for an instrument
- Close Order. Closes Partially or Totally an order based on the ticket id
- Opened Orders. Get the opened orders info.
- Equity. Get the trading account equity
- Prices. Get the close bar prices based on the position (0 is the current bar).
- Bid/Ask. Get the current market prices.