I'm trying to initialize Metatrader 5 with Python and have it login. All seems to work fine. However, after it's launched metatrader and logged in to the trader account, Metatrader crashes and shuts down.
Am I missing something?
import MetaTrader5 as mt5
if not mt5.initialize(login=12345, server="Server_Name",password="123456"):
print("initialize() failed, error code =",mt5.last_error())