MT5WaitForTerminal {MetaTrader} | R Documentation |
Waits for the MetaTrader 5 Terminal to connect to a broker's server.
MT5WaitForTerminal()
Maximum waiting time is 1 minute. To check the current connection status, use MT5TerminalInfo
.
Returns TRUE if connection is established successfully, FALSE if the waiting time is exceeded.
# start MetaTrader 5 Terminal (you should have it installed), call on first request only MT5Initialize() # wait for connection with broker server, call on first request only MT5WaitForTerminal()