MT5 error (-10005, 'IPC timeout')

MQL5 통합

명시

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

응답함

1
개발자 1
등급
(4)
프로젝트
4
0%
중재
2
0% / 100%
기한 초과
1
25%
무료
2
개발자 2
등급
(6)
프로젝트
10
50%
중재
6
17% / 50%
기한 초과
3
30%
작업중

프로젝트 정보

예산
30+ USD