Download MetaTrader 5

How to "control" MT4 via an external script

To add comments, please log in or register
Find out how to use widgets at
Dementophobia 2016.03.01 23:30 


I created a bot in Python and now I want to use it via MT4. I need 2 Interfaces - one to get the live data from MT4 (tick data or 1m candles would be fine) and one to place the trades the bot comes up with in MT4 (like a signal).

What would be the best way to approach this? Are such interfaces already in place or would I need to implement them manually in MQL4? Or am I taking the wrong approach here and talking directly with the broker instead of going via MT4 would be the better option?

Oh yes, I don't want to implement the bot logic in MQL4, I'd prefer to keep it in Python.

To add comments, please log in or register