News
News functions are mostly used for accessing the news log which logs incoming news events from the data provider.
Sections
Name |
Description |
Adds a message to the news log. |
|
Gets the message text of a specified news message. |
|
Gets the number of messages in the log. |
|
Gets the date/time of a specified news message. |
|
Gets the symbol index of a specified news message. |
|
Gets the title of a specified news message. |
|
Gets the message type of a specified news message. |
NewsAddMessage(int symbolIndex, string title, string message, C_MessageType type) |
|||||||||||||||
Adds a message to the news log. Parameters
Scripts Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy |
string NewsMessage(int index) |
||||||
Gets the message text of a specified news message. Returns The message text of the specified news message. Parameters
Scripts Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy |
int NewsMessageCount() |
Gets the number of messages in the log. Returns The number of messages in the log. Scripts Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy |
long NewsMessageDateTime(int index) |
||||||
Gets the date/time of a specified news message. Returns The date/time of the specified news message. Parameters
Scripts Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy |
int NewsMessageSymbolIndex(int index) |
||||||
Gets the symbol index of a specified news message. Returns The symbol index of the specified news message. Parameters
Scripts Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy |
string NewsMessageTitle(int index) |
||||||
Gets the title of a specified news message. Returns The title of the specified news message. Parameters
Scripts Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy |
C_MessageType NewsMessageType(int index) |
||||||
Gets the message type of a specified news message. Returns The message type of the specified news message. (View Options) Parameters
Scripts Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy |