MT5Initialize {MetaTrader}R Documentation

Establish connection with the MetaTrader 5 Terminal

Description

Establishes connection with the MetaTrader 5 Terminal.

Usage

  MT5Initialize(path=NULL)

Arguments

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

Details

If necessary, the terminal is launched during command execution.

Value

Return the result of connection to the MetaTrader 5 Terminal: TRUE if successulf, FALSE if not.

Examples

  MT5Initialize("C:/Program Files/MetaTrader 5/terminal64.exe");
  MT5Initialize();

[Package MetaTrader version 1.0.3 Index]