ActivateOrderManager
void ActivateOrderManager()Opens the WL9 Order Manager and brings it into focus.
API documentation, members, signatures, and C# examples.
Find classes, members, and documentation.
The IWLClientHost interface provides properties and methods that allow ChildWindow instances, charts, and client extensions to communicate with the main WL9 window. It provides access to navigation, Strategy windows, chart coordination, streaming, theming, sounds, extension services, and other features of the WL9 user interface. The primary IWLClientHost instance is also available through WLClientHost.Instance.
void ActivateOrderManager()Opens the WL9 Order Manager and brings it into focus.
void ActivateStreaming(bool activate)Turns streaming on or off for charts in WL9. Pass true in activate to enable streaming, or false to disable it.
bool AllowAutoTradingReturns true if the user has agreed to the WL9 Auto-Trading Agreement.
void ChartMouseBarNumberChange(BarHistory bars, int idx)Notifies WL9 that the mouse has moved to a different bar in a chart. The bars parameter contains the BarHistory being charted and idx contains the current bar index.
void ChartSymbol(string windowID, string symbol, DataSet ds = null)void ChartSymbolChanged(string symbol, object chartInstance)Notifies WL9 that a chart's symbol was manually changed. WL9 uses this notification to support linked chart windows.
void ChildWindowActivated(ChildWindow cw)Notifies WL9 that the ChildWindow specified in cw has been activated.
void ChildWindowDeactivated(ChildWindow cw)Notifies WL9 that the ChildWindow specified in cw has been deactivated.
double ContainerHeightReturns the height of the WL9 main MDI container.
bool ContainerScrollBarsEnabledReturns true if scroll bars are currently enabled in the WL9 MDI container.
double ContainerWidthReturns the width of the WL9 main MDI container.
void ContextMenuOpened(ContextMenu cm)Notifies WL9 that the ContextMenu specified in cm has opened. This allows WL9 to perform any required processing for the context menu.
void CreateChildWindowMenu(MDIChild child)Creates the main menu entry associated with the specified MDIChild window. This is used internally when integrating ChildWindow instances into the WL9 MDI interface.
void DisplayHelpTipText(string topic, string help)Displays context-sensitive help text in the WL9 Help panel. The topic parameter specifies the help topic and help contains the text to display.
void DrawingButtonClicked(object dob)Notifies WL9 that a chart drawing object button was clicked, allowing the corresponding drawing button state to be updated.
ClientExtensionFactory ExtensionsFactoryReturns the ClientExtensionFactory instance that manages installed WL9 client extensions.
bool IsCrosshairSyncedReturns true if crosshair synchronization is currently enabled for this WL9 window.
bool IsDarkThemeReturns true if the currently selected WL9 Theme is a dark Theme.
void LockToolbarVisibility(bool locked)Controls whether chart toolbar visibility is locked. Pass true in locked to lock toolbar visibility, or false to allow normal toolbar visibility behavior.
void OpenAndRunStrategy(Strategy s)void OpenQuotesWindow(SignalBlock sb)Opens a new Quotes window populated with the price triggers contained in the SignalBlock specified in sb.
void OpenStrategy(Strategy s)void OpenStrategy(SavedOptimizationResults sor)void PlaySound(string name)Plays the named WL9 sound specified in name.
void RefreshTheme(DependencyObject dobj)Forces the current Light/Dark Theme to refresh for the WPF DependencyObject specified in dobj. You can call RefreshTheme after controls have been dynamically added or changed in code and need their Theme resources refreshed.
void RemoveChildWindowMenu(MDIChild child)Removes the main menu entry associated with the specified MDIChild window. This is used when a ChildWindow is closed.
void ShowChartStatusBars(bool show)Shows or hides chart status bars throughout the WL9 client.
ChildWindow ShowDataManager(string pageName = null, string providerName = null)Opens the WL9 Data Manager and returns its ChildWindow instance. Optionally pass pageName to select a specific Data Manager page. When applicable, pass providerName to select a specific Provider on that page.
void ShowExtensionChildWindow(ChildWindow cw, string title, ImageSource glyph)Opens the ChildWindow specified in cw as an extension window, using title for the window title and the WPF ImageSource specified in glyph for its icon.
void ShowHelpPage(string page)Opens the WL9 Help system and navigates to the Help topic specified in page.
void ShowIndicator(string abbr)Opens the Indicators page in the left navigation panel and selects the indicator whose abbreviation is specified in abbr.
void ShowPreferences(string pageName = null)Opens the WL9 Preferences window. Optionally pass pageName to navigate directly to a specific Preferences page.
void ShowQuickRefClass(string className)Opens the QuickRef pane and navigates to the class specified in className.
void ShowQuickRefEntry(QuickRefEntry entry)void ShowQuickRefEntry(string className, string itemName)Opens the QuickRef pane and navigates to a specific QuickRef entry. Pass either a QuickRefEntry instance, or specify the class and member using className and itemName.
void ShowViewPage(string page, bool makeVisible = true, bool isHover = false)Changes the page displayed in the main window's left navigation pane. The page parameter specifies the page to display. makeVisible determines whether the navigation pane should be made visible, and isHover indicates that the page change is occurring as part of hover behavior. Common page values include:
void SyncCrosshair(bool sync)void SyncCrosshair(DateTime dt, double value, string paneName, MarketDetails market)The first overload enables or disables crosshair synchronization among charts. The second overload performs a crosshair synchronization using the specified dt, y-axis value, paneName, and market.
string TitleGets or sets the title of the WL9 main window.
void UpdateSliders(ParameterList pl)Updates the Strategy Parameter sliders in the WL9 user interface using the ParameterList specified in pl.
Ask the community or explore custom development services.