The error seems to be related to your path.
Did you see there is only one backslash "\" before `terminal64.exe`?
Try to escape all backslashes (\\) in your path.
This answer from Stackoverflow might also help.
Best.

metatrader error initialize() failed, error code = (-10005, 'IPC timeout')
- 2021.03.05
- dcabello dcabello 1 2 2 bronze badges
- stackoverflow.com
I got this error initialize() failed, error code = (-10005, 'IPC timeout') when execute this code: Can anyone help me please? Thanks in advance

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey there,
i am trying to get python to connect to mt5
when i initialize it, it wont login to my account (i have checked the login and password for the demo account a few times)
if i use this code to initialize, i get this error code
if i use this code
i get this error
and if i use this code
MT5 opens but i get this error message
How do i get this to work?