MT5 error (-10005, 'IPC timeout')

MQL5 Integração

Termos de Referência

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

Respondido

1
Desenvolvedor 1
Classificação
(4)
Projetos
4
0%
Arbitragem
2
0% / 100%
Expirado
1
25%
Livre
2
Desenvolvedor 2
Classificação
(6)
Projetos
10
50%
Arbitragem
6
17% / 50%
Expirado
3
30%
Trabalhando

Informações sobre o projeto

Orçamento
30+ USD