error code: (-10004, 'No IPC connection')

 

Dear Community,

I am reaching out for assistance in connecting my trade account with Visual Studio. Unfortunately, I consistently encounter the following error: (-10004, 'No IPC connection'). I have attempted various troubleshooting steps, but none have proven successful thus far. I would greatly appreciate any guidance or support you can provide!

My implementation:

if not mt5.initialize():
    print("initialize() failed")
    mt5.shutdown()

account = 5000000000 # obv. changed
authorized = mt5.login(login=account, server="MetaQuotes-Demo",password="xxxyyyyy")  
if authorized:
    print("connected to account #{}".format(account))
else:
    print("failed to connect at account #{}, error code: {}".format(account, mt5.last_error()))

mt5.shutdown()

Output:

failed to connect at account #5000000000, error code: (-10004, 'No IPC connection')
True


Thanks in advance!

 
same error