More tests performed:
terminal_path_1 = "I:\\Software\\ MetaTrader 5\\terminal64.exe" terminal_path_2 = "I:\\Software\\ MetaTrader1\\terminal64.exe" print(mt5.initialize(terminal=terminal_path_2)) mt5.shutdown() print (mt5.initialize(terminal=terminal_path_1)) mt5.shutdown()
The same Path_1 always opens for me and it doesn't close
I have edited your posts ...
- On the English forum, please write in English. Either use the automatic translation tool, or post in one of the other language forums.
-
Please use the CODE button (Alt-S) when inserting code.
Try to find a solution here. Out of the box MT5 does not support multiple instances bound to python at the same time, at the moment.

MT5/Metatrader 5 connect to different MT5 terminals using python
- 2020.09.20
- usert4jju7 usert4jju7 1,803 6 6 gold badges 31 31 silver badges 68 68 bronze badges
- stackoverflow.com
I've got multiple python programs that connect to Mt5 terminal using the following code. The problem I have is that, when multiple programs connect to the same MT5 , the performance degrades & one or more python programs exit with errors. To overcome this, I have installed multiple copies of MT5 & have updated the python code such that...
Fernando Carreiro #:
I have edited your posts ...
- On the English forum, please write in English. Either use the automatic translation tool, or post in one of the other language forums.
-
Please use the CODE button (Alt-S) when inserting code.
thanks

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 have tried to solve it with a connection to a portable terminal and it gives me an error.