Skip to content

MT4Account.ConnectByHostPort method

Synchronously connects to the MT4 terminal.

public void ConnectByHostPort(string host, int port = 443, string baseChartSymbol = "EURUSD", 
    bool waitForTerminalIsAlive = true, int timeoutSeconds = 30)
parameter description
host The MT4 server host.
port The port the server listens on.
baseChartSymbol Chart symbol to initialize the session.
waitForTerminalIsAlive Wait for terminal readiness flag.
timeoutSeconds Timeout duration in seconds.

See Also