Mt4 model for integration with python?

 

Hello all


Is there mt4 module for integration with python like this for mt5 ?

If the answer is NO, is there any other solutions to open the terminal and manage it automatically? (without connecting the python with EA via socket or any something else).


Thanks

Documentation on MQL5: Integration / MetaTrader for Python
Documentation on MQL5: Integration / MetaTrader for Python
  • www.mql5.com
MetaTrader for Python - Integration - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Ahmed Farag:

Hello all


Is there mt4 module for integration with python like this for mt5 ?

If the answer is NO, is there any other solutions to open the terminal and manage it automatically? (without connecting the python with EA via socket or any something else).


Thanks

I don't know much about MT4 but one option is to write info to a file from Python, and the process it with MT4. And vice versa.

Not optimal, but effectively building your own file based interface

https://docs.mql4.com/files/

 
R4tna C #:

I don't know much about MT4 but one option is to write info to a file from Python, and the process it with MT4. And vice versa.

Not optimal, but effectively building your own file based interface

https://docs.mql4.com/files/

Hello

Thank you for your help.

But the Mt5 model for integration with python can open an account from the python script.

And with files in mt4 will not do that.

 
Ahmed Farag: Is there mt4 module for integration with python like this for mt5 ? If the answer is NO, is there any other solutions to open the terminal and manage it automatically? (without connecting the python with EA via socket or any something else).

No, there is no Python integration API for MetaTrader 4.

No, there is no other means to manage the terminal externally, except what is already provided via the command line start-up which is very limited.

Any and all methods of interaction with MetaTrader 4 from externally, has always required that the terminal run custom MQL4 code, that either uses files or DLL calls to be able to communicate with the external applications.

Configuration at Startup - Tools - MetaTrader 4 Help
Configuration at Startup - Tools - MetaTrader 4 Help
  • www.metatrader4.com
The client terminal can be launched with some predefined settings. For this purpose, the configuration file name will be passed to the client...
 
Ahmed Farag #:

Hello

Thank you for your help.

But the Mt5 model for integration with python can open an account from the python script.

And with files in mt4 will not do that.

Yes the file suggestion was only for data exchange - it seems you need more.

Might be better to shift to MT5 if that is an option

Reason: