DataConnection
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
Name |
Description |
Determines whether the data connection for the Desktop is connected. |
|
Gets the message of a specified data connection log message. |
|
Gets the number of data connection log messages. |
|
Gets the date/time of a specified data connection log message. |
|
Gets the symbol index of a specified data connection log message. |
|
Gets the message type of a specified data connection log message. |
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
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
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
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
Scripts MultiSymbolTradingStrategy, Screener, TradingStrategy |