DataConnection functions are mostly used for accessing the data connections log. The log is used for logging various data connection events, such as connections, disconnections, data errors and data retrievals, among others.


Sections


Functions

Function Details


Functions


Name

Description

bool DataConnectionIsConnected()

Determines whether the data connection for the Desktop is connected.

string DataConnectionMessage(int)

Gets the message of a specified data connection log message.

int DataConnectionMessageCount()

Gets the number of data connection log messages.

long DataConnectionMessageDateTime(int)

Gets the date/time of a specified data connection log message.

int DataConnectionMessageSymbolIndex(int)

Gets the symbol index of a specified data connection log message.

C_MessageType DataConnectionMessageType(int)

Gets the message type of a specified data connection log message.


Function Details


bool DataConnectionIsConnected()

Determines whether the data connection for the Desktop is connected.


Returns


True if the data connection is connected, false otherwise.


Scripts


MultiSymbolTradingStrategy, Screener, TradingStrategy


string DataConnectionMessage(int index)

Gets the message of a specified data connection log message.


Returns


The message of the specified data connection log message.


Parameters


Type

Identifier

Description

int

index

The data connection log message index


Scripts


MultiSymbolTradingStrategy, Screener, TradingStrategy


int DataConnectionMessageCount()

Gets the number of data connection log messages.


Returns


The number of data connection log messages.


Scripts


MultiSymbolTradingStrategy, Screener, TradingStrategy


long DataConnectionMessageDateTime(int index)

Gets the date/time of a specified data connection log message.


Returns


The date/time of the specified data connection log message.


Parameters


Type

Identifier

Description

int

index

The data connection log message index


Scripts


MultiSymbolTradingStrategy, Screener, TradingStrategy


int DataConnectionMessageSymbolIndex(int index)

Gets the symbol index of a specified data connection log message.


Returns


The symbol index of the specified data connection entry.


Parameters


Type

Identifier

Description

int

index

The data connection log message index


Scripts


MultiSymbolTradingStrategy, Screener, TradingStrategy


C_MessageType DataConnectionMessageType(int index)

Gets the message type of a specified data connection log message.


Returns


The message type of the specified data connection log message. (View Options)


Parameters


Type

Identifier

Description

int

index

The data connection log message index


Scripts


MultiSymbolTradingStrategy, Screener, TradingStrategy