MT5 error (-10005, 'IPC timeout')

MQL5 Entegrasyon

İş Gereklilikleri

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(4)
Projeler
4
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
1
25%
Serbest
2
Geliştirici 2
Derecelendirme
(6)
Projeler
10
50%
Arabuluculuk
6
17% / 50%
Süresi dolmuş
3
30%
Çalışıyor

Proje bilgisi

Bütçe
30+ USD