Any ideas on how to do this?
Hi please see
initialize( |
Thank you so much.
This was such a great help :-)
https://www.mql5.com/en/docs/integration/python_metatrader5/mt5initialize_py
If you read in the login credentials from an external file make sure to cast the account number to Int.
- www.mql5.com
I have another question in regard to the path for mt5.initialize
I have this code in python
if not mt5.initialize(login=accNumber, server="ICMarkets-MT5",password=pword):
which works fine, now I want to add the path, and I have tried
if not mt5.initialize(path="E:\Programs\ICMarkets-MT5-Demo", login=accNumber, server="ICMarkets-MT5",password=pword):
which gives me this error
initialize() failed, error code = (-10003, "IPC initialize failed, Process create failed 'E:/Programs/ICMarkets-MT5-Demo'")
I have tried using \\ and / and // instead as well as single quote, all with the same result.
Any ideas?
You must include terminal64.exe in path. This worked for me:
path1='C:\\Program Files\\Capitaria MT5 Terminal\\terminal64.exe'
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
Is there a way to toggle through different MT5 accounts using a mql5 script or EA?
I would like to do that for 2 reasons:
1. to get the account balances from different MT5 accounts
2. close all open trades from different MT5 accounts
Is there anyone that can help me.
Thanks in advance.