void AddLogItem(string senderName, string msg, WLColor color, Exception ex = null, object sender = null)
Adds a message to the WL9 log. The senderName identifies the component issuing the message, msg contains the message text, color determines its status indicator color, and ex can contain an associated Exception.
Extension developers can optionally pass their extension instance in sender. When the sender is a StreamingProviderBase, WL9 can use the supplied color to update the streaming status indicator in windows using that provider.
void AddLogItemOrders(string senderName, string msg, WLColor color, Exception ex = null)
Adds a broker-related message to the Order Manager messages pane and the WL9 log.
void CopyFileToDataFolder(string sourceSubDir, string destSubDir, string fileName, bool alwaysOverwrite, bool reportErrors)
Copies the specified fileName from a subdirectory of the WL9 installation folder to a subdirectory of the WL9 Data Folder. If alwaysOverwrite is true, an existing destination file is overwritten. The reportErrors parameter controls whether errors encountered during the operation are reported.
List<BarHistory> GetHistories(List<string> symbols, HistoryScale scale, DateTime start, DateTime end, int maxBars, DataRequestOptions hcb)
Returns historical data for the specified list of symbols and scale. Specify a date range using start and end, or use maxBars to request a maximum number of bars. The hcb parameter can contain additional DataRequestOptions, such as a preferred DataSet and intraday filtering options.
BarHistory GetHistory(string symbol, HistoryScale scale, DateTime startDate, DateTime endDate, int maxBars, DataRequestOptions cb)
Returns historical data for the specified symbol and scale. Specify a date range using startDate and endDate, or use maxBars to request a maximum number of bars. The cb parameter can contain additional DataRequestOptions, such as a preferred DataSet and intraday filtering options.
BarData GetPartialBar(string symbol, HistoryScale scale, DataSet ds)
Returns the current partial bar for the specified symbol and scale. If ds is not null, WL9 attempts to obtain the data using the specified DataSet first.