error code = -10003

 
i dont know if i am posting this at correct place , so i apologize in advance if its not

i am trying to login to an account using the python integration , and when i tried this code everything worked splendidly :

import MetaTrader5 as mt5
# display data on the MetaTrader 5 package
print("MetaTrader5 package author: ",mt5.__author__)
print("MetaTrader5 package version: ",mt5.__version__)
 
# establish MetaTrader 5 connection to a specified trading account
if not mt5.initialize(login=25115284, server="MetaQuotes-Demo",password="4zatlbqx"):
    print("initialize() failed, error code =",mt5.last_error())
    quit()
 
# display data on connection status, server name and trading account
print(mt5.terminal_info())
# display data on MetaTrader 5 version
print(mt5.version())
 
# shut down connection to the MetaTrader 5 terminal
mt5.shutdown()

but when i added the "path" it stopped working and i got this: 
this is the code with path :

mt5.initialize(path=r"C:\Program Files\MetaTrader 5", login=28735868, server="MetaQuotes-Demo",password="ptnlvtdi")

and this is the issue that i got :


Files:
 
You need to specify the name of the file and use double backslashes, so path would be: "C:\\Program Files\\MetaTrader 5\\terminal64.exe"


So this should work:

mt5.initialize(path="C:\\Program Files\\MetaTrader 5\\terminal64.exe", login=28735868, server="MetaQuotes-Demo",password="ptnlvtdi")