Parent:
The IHost interface represents the WL9 host environment and provides key integration points for Strategies and WL9 Extensions. You can access the singleton instance of IHost through WLHost.Instance.
public static class WLHost
WLHost is a static class that provides global access to the current IHost implementation.
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.
Adds a broker-related message to the Order Manager messages pane and the WL9 log.
Returns the folder where WL9 is installed.
Returns whether an Extension associated with the specified productCode and ExtensionLicenseType can be loaded under the user's current license.
Displays a configuration dialog for the specified Configurable object c. Returns true if the user changes the configuration.
Displays a configuration dialog for the parameters contained in pl, using title as the dialog title. Returns true if the user changes the parameters.
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.
Returns the WL9 user data folder.
Disables WL9 Offline Mode.
Displays the specified msg to the user in a message box.
Returns a List of strings containing the names of Event Data Items currently selected for plotting. Remarks
- The corresponding Event Data Provider must also be enabled for the selected event items to actually be plotted.
Executes a platform-specific method and returns its result. This allows platform-neutral WL9 Extension assemblies to invoke functionality implemented in a platform-specific companion assembly. In WL9 WPF, this mechanism is supported by ObjectEditorBase in the WealthLab.WPF library. A derived ObjectEditorBase can identify itself using callerName, respond to methodName, process parameter, and return a platform-specific result.
Returns true if WL9 is currently operating in Expert Mode. Expert Mode hides various explanatory elements throughout the WL9 user interface.
Returns a MarketDetails instance representing the market associated with the specified symbol.
Returns a current quote for the specified symbol. The mkt parameter specifies its MarketDetails and ds can specify a preferred DataSet.
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.
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.
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.
Injects the assembly references contained in asmRef into WL9's source code compiler reference list. This is primarily intended for Extensions that require custom assemblies during dynamic source code compilation.
Returns true if the current host environment is the WealthLab web site.
Returns the name of the current WealthLab user.
Returns true if WL9 is currently operating in Offline Mode.
Performs an OAuth authentication flow using the specified authUrl and clientName. The optional matchUrl identifies the URL used to recognize the OAuth redirect, and defaults to http://localhost. Returns the resulting localhost redirect URL.
Returns a string identifying the current client platform, such as "Web", "WinForms", or "WPF".
Plays the WL9 sound identified by soundName.
Returns the SettingsManager instance used to access the WL9 settings file.
Changes the application's wait cursor state. Pass true to display the wait cursor and false to restore the normal cursor.
Returns the current WL9 build number.
Returns the current WL9 client version as a System.Version instance.
Returns the singleton IHost instance representing the current WL9 host environment. Strategies and Extensions can use WLHost.Instance to access the IHost members described above.