MT5 error (-10005, 'IPC timeout')

MQL5 Integration

Specification

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

Responded

1
Developer 1
Rating
(4)
Projects
4
0%
Arbitration
2
0% / 100%
Overdue
1
25%
Free
2
Developer 2
Rating
(6)
Projects
10
50%
Arbitration
6
17% / 50%
Overdue
3
30%
Working
Similar orders
Hello, i need an expert to convert my Tradingview indicator to MT4. I have a Tradingview indicator which i need it to be converted to MT4 Let me know if you can do this I will send the code in the message box
Hell there, i have an tradingview pinescript indicator which i will like to be converted to both MT4 and MT5 to works perfectly I need an expert who can work on this indicator for me The script will be send to you in the chat
Hi there, I have a pinescript indicator which I will want it to be converted to MT5 EA to trade on its own Let me know if you can work on this
I am looking for someone who can convert Tradingview indicator to MT5 I will attach the pinescript in the chat box Let me know if you can convert it to mt5
//+------------------------------------------------------------------+ //| Blanc.mq5 | //| Copyright 2018, DNG® | //| http://www.mql5.com/ru/users/dng | //+------------------------------------------------------------------+ #property copyright "Copyright 2018, DNG®" #property link " http://www.mql5.com/ru/users/dng " #property version "1.00" #property indicator_chart_window #property indicator_buffers 1 #property
Trade Assistant MT5 Buy trades when prices fall to gain value at a discount. Sell those trades when prices rise to secure profits. This strategy maximizes returns by leveraging market. 4o
ChatGPT-Integrated MT5 EA for Probability-Based Trade Execution & Live Market Discussion Project Overview This Expert Advisor (EA) does not determine trade signals . Instead, ChatGPT analyzes market conditions, calculates probability-based trade setups, and provides instructions for execution . The EA simply acts as an execution engine, executing trades based on ChatGPT’s signals with an optional manual verification

Project information

Budget
30+ USD
For the developer
27 USD