Execute script without opening MT5 window New comment XasmY 2021.02.18 23:37 Hello, I created a little script script with Python with this function: def connectToAccount(account, pswd): # if not mt5.initialize(): # print("initialize() failed, error code =", mt5.last_error()) # quit() authorized = mt5.login(account, psw) if authorized: print("Connected to account #{} ".format(account)) else: print("failed to connect at account #{}, error code: {}".format( account, mt5.last_error())) And I don't find a way to connect to an account without opening or some tricks. I would like to connect without MT5 window. Do you have any tracks or solution ? Thank you ! python + mt5 terminal (Is there any way to connect mt5 terminal without installing metatrader on windows?) Running Python Script on Windows Desktop - MetaTrader VPS NEED A PROGRAMMER New comment
Hello,
I created a little script script with Python with this function:
And I don't find a way to connect to an account without opening or some tricks.
I would like to connect without MT5 window.
Do you have any tracks or solution ?
Thank you !