MT5 error (-10005, 'IPC timeout')

MQL5 Intégration

Spécifications

I am working on a python code that uses mt5 package and I am facing issues in connecting to a platform.

In particular, this same issue occurs occasionally without me changing the code / mt5 settings, I cannot individuate any particular reason to this intermitting behaviour.

Network is stable.

My code is of the kind:

mt5.initialize()
mt5.login(login=login, password=password, server=server)

I also tried variations of the same lines, e.g.:

mt5.initialize("C:\\Program Files\\MetaTrader 5\\terminal64.exe")
mt5.login(login=login, password=password, server=server)

Errors are of the kind (-10005, 'IPC timeout') or (-10004, 'No IPC connection').

OS: tried both on windows 10 and windows 11.

Do you have any stable solution to this?


Additional question, I have a global installation of mt5 but I would be interested in trading (via python api) on two different mt5 accounts at the same time. 

My guess is that I can use two different windows users, each of which runs the code on a different mt5 account. Is this a proper solution or event two different users would initialize the same terminal?


Thank you in advance

Répondu

1
Développeur 1
Évaluation
(4)
Projets
4
0%
Arbitrage
2
0% / 100%
En retard
1
25%
Gratuit
2
Développeur 2
Évaluation
(6)
Projets
10
50%
Arbitrage
6
17% / 50%
En retard
3
30%
Travail

Informations sur le projet

Budget
30+ USD