Skip to content

Connection.ConnectionClient class

Client for Connection

public class ConnectionClient : ClientBase<ConnectionClient>

Public Members

name description
ConnectionClient(…) Creates a new client for Connection (2 constructors)
virtual CheckConnect(…) Checks if terminal connection to MT4 server is alive (2 methods)
virtual CheckConnectAsync(…) Checks if terminal connection to MT4 server is alive (2 methods)
virtual Connect(…) Creates terminal connection to the MT4 server and returns Guid of it [DefaultValues] { "user": "501401178", "password": "v8gctta", "host": "mt4-demo.roboforex.com", "port": "443", "baseChartSymbol": "EURUSD", "waitForTerminalIsAlive": "true" } (2 methods)
virtual ConnectAsync(…) Creates terminal connection to the MT4 server and returns Guid of it [DefaultValues] { "user": "501401178", "password": "v8gctta", "host": "mt4-demo.roboforex.com", "port": "443", "baseChartSymbol": "EURUSD", "waitForTerminalIsAlive": "true" } (2 methods)
virtual ConnectEx(…) Creates terminal connection to the MT5 server by MT cluster name, waits for connection and returns Guid of it (2 methods)
virtual ConnectExAsync(…) Creates terminal connection to the MT5 server by MT cluster name, waits for connection and returns Guid of it (2 methods)
virtual ConnectProxy(…) Connect to account with user, password, host, port. [DefaultValues] { "user": "500476959", "password": "ehj4bod", "host": "mt4-demo.roboforex.com", "port": "443", "proxyUser": "ProxyUser123", "proxyPassword": "qwerty123", "proxyHost": "65.108.126.217", "proxyPort": "1080", "proxyType": "Socks5" } (2 methods)
virtual ConnectProxyAsync(…) Connect to account with user, password, host, port. [DefaultValues] { "user": "500476959", "password": "ehj4bod", "host": "mt4-demo.roboforex.com", "port": "443", "proxyUser": "ProxyUser123", "proxyPassword": "qwerty123", "proxyHost": "65.108.126.217", "proxyPort": "1080", "proxyType": "Socks5" } (2 methods)
virtual Disconnect(…) Close terminal connection to MT4 server (2 methods)
virtual DisconnectAsync(…) Close terminal connection to MT4 server (2 methods)
virtual Reconnect(…) If you need to recreate terminal instance with the same id (2 methods)
virtual ReconnectAsync(…) If you need to recreate terminal instance with the same id (2 methods)

See Also