BrokerConnection
BrokerConnection functions are mostly used for accessing the broker connections log. The log is used for logging various broker connection events, such as connections, disconnections, order submissions, order acknowledgements, order cancellations and order modifications, among others.
Sections
Name |
Description |
Determines whether the broker connection for the Desktop is connected. |
|
Gets the message of a specified broker connection log message. |
|
Gets the number of broker connection log messages. |
|
Gets the date/time of a specified broker connection log message. |
|
Gets the symbol index of a specified broker connection log message. |
|
Gets the message type of a specified broker connection log message. |
bool BrokerConnectionIsConnected() |
Determines whether the broker connection for the Desktop is connected. Returns True if the broker connection is connected, false otherwise. Scripts MultiSymbolTradingStrategy, Screener, TradingStrategy |
string BrokerConnectionMessage(int index) |
||||||
Gets the message of a specified broker connection log message. Returns The message of the specified broker connection log message. Parameters
Scripts MultiSymbolTradingStrategy, Screener, TradingStrategy |
int BrokerConnectionMessageCount() |
Gets the number of broker connection log messages. Returns The number of broker connection log messages. Scripts MultiSymbolTradingStrategy, Screener, TradingStrategy |
long BrokerConnectionMessageDateTime(int index) |
||||||
Gets the date/time of a specified broker connection log message. Returns The date/time of the specified broker connection log message. Parameters
Scripts MultiSymbolTradingStrategy, Screener, TradingStrategy |
int BrokerConnectionMessageSymbolIndex(int index) |
||||||
Gets the symbol index of a specified broker connection log message. Returns The symbol index of the specified broker connection log message. Parameters
Scripts MultiSymbolTradingStrategy, Screener, TradingStrategy |
C_MessageType BrokerConnectionMessageType(int index) |
||||||
Gets the message type of a specified broker connection log message. Returns The message type of the specified broker connection log message. (View Options) Parameters
Scripts MultiSymbolTradingStrategy, Screener, TradingStrategy |