Skip to content

MT4Account.ConnectByServerName method

Synchronously connects to the MT4 terminal.

public void ConnectByServerName(string serverName, string baseChartSymbol = "EURUSD", 
    bool waitForTerminalIsAlive = true, int timeoutSeconds = 30)
parameter description
serverName MT4 server name from MT4 Terminal.
baseChartSymbol Chart symbol to initialize the session.
waitForTerminalIsAlive Wait for terminal readiness flag.
timeoutSeconds Timeout duration in seconds.

See Also