MT5TerminalInfo {MetaTrader} | R Documentation |
Gets the state and parameters of the MetaTrader 5 terminal connection to a broker's server (account number and server address).
MT5TerminalInfo()
You can proceed with requesting data from the MetaTrader 5 terminal only if the connection status is 2. Call MT5WaitForTerminal
to wait for connection.
Returns the state and parameters of the MetaTrader 5 terminal connection in the form of a R list.
integer | status of connection to the broker's server: 0 - not connected, 1 - connected, but the enivronment is not syncrhonized yet, 2 - connected |
string | broker's server name |
string | account number (login) |
[[1]] [1] 2 [[2]] [1] "MetaQuotes-Demo" [[3]] [1] "15185779"