i'm having some troubles switching accounts in MT5 via python:
-MT5 started manually
-2 accounts have been connected manually.
-logged into 1 account manually.
i now tried to switch to the other account with mt5.login(account,password,server) as well as with mt5.initialize(path,account,password,server), but everytime i get an 10004 IPC Timeout. The account i'am trying to log into is then displayed with a yellow human symbol in MT5 user interface.
Any idea how to handle this issue?
def change_account(account_number,password,server): if not mt5.initialize(login=account_number,server=server,password=password): print(str(mt5.last_error()))
Hello,
i'm having some troubles switching accounts in MT5 via python:
-MT5 started manually
-2 accounts have been connected manually.
-logged into 1 account manually.
i now tried to switch to the other account with mt5.login(account,password,server) as well as with mt5.initialize(path,account,password,server), but everytime i get an 10004 IPC Timeout. The account i'am trying to log into is then displayed with a yellow human symbol in MT5 user interface.
Any idea how to handle this issue?
if not mt5.initialize(login=account_number,server=server,password=password):
print(str(mt5.last_error()))