Wait till the MetaTrader 5 terminal connects to the trade server.
Returns True if the MetaTrader 5 terminal successfully connects to the trading server, otherwise - False.
The MT5Version() function returns connection status, trade server address and trading account number as a tuple.
The waiting time is 1 minute. MT5TerminalInfo() should be called to check the connection status after MT5WaitForTerminal().