MT5Initialize {MetaTrader} | R Documentation |
Establishes connection with the MetaTrader 5 Terminal.
MT5Initialize(path=NULL)
path |
path to the MetaTrader 5 Terminal EXE-file; this parameter is optional - if not set, the R module will try to locate the executable file itself |
If necessary, the terminal is launched during command execution.
Return the result of connection to the MetaTrader 5 Terminal: TRUE if successulf, FALSE if not.
MT5Initialize("C:/Program Files/MetaTrader 5/terminal64.exe"); MT5Initialize();