issue regarding python integration with metaTrader5

 

Hello,

I am reaching out regarding the integration of Python with MetaTrader 5 (MT5). I have encountered difficulties when trying to integrate Python with MT5 for automated trading and analysis. Currently, I am unable to utilize Python in conjunction with MetaTrader 5 despite following the python (jupyter Notebook) code output:

1. mt5.initialize( )     # output- False

2. if not mt5.initialize(login=111111111, server=" DDDDDDDD", password="************"):

    print("initialize() failed, error code =",mt5.last_error())

    quit()

output- 

initialize() failed, error code = (-10005, 'IPC timeout')

Could you please assist me in resolving this issue or provide further instructions on how to correctly integrate Python with MetaTrader 5?

I would appreciate your guidance and assistance in resolving this matter.

Thank you.

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 

What operating system?

If it is Linux or Mac, then you have to use Python for Windows, in the same virtualised environment as the MetaTrader 5 application. You can't mix the environments.