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")
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i am trying to login to an account using the python integration , and when i tried this code everything worked splendidly :
but when i added the "path" it stopped working and i got this:
this is the code with path :
and this is the issue that i got :