Data Panel ScoreCard API
A Data Panel ScoreCard Extension adds a new ScoreCard choice to the Data Panel in WealthLab 9. The Data Panel displays information for the chart bar currently under the mouse cursor. A Data Panel ScoreCard determines which values appear in the panel and how they are presented.
Build Environment
You can create a Data Panel ScoreCard in a .NET development tool such as Visual Studio 2026.
Create a class library project that targets .NET10, then reference the WealthLab.Core library DLL that you'll find in the WL9 installation folder.
Your Data Panel ScoreCard will be a class in this library that descends from DataPanelScoreCardBase, which is defined in the WealthLab.Core library, in the WealthLab.Backtest namespace. After you implement and build your library, simply copy the resulting assembly DLL into the WL9 installation folder. The next time WL9 starts up, it will discover your Data Panel ScoreCard, making it available in appropriate locations of the WL9 user interface.

Accessing the Host (WL9) Environment
The IHost interface provides access to the current WealthLab environment. Extensions can use it to retrieve application-level information and services, such as the location of the user's WealthLab data folder or the DataSets defined by the user.
You can access the current IHost instance from anywhere in your extension through the WLHost singleton and its Instance property. For example, the following code retrieves the path to the user's WealthLab data folder:
string folder = WLHost.Instance.DataFolder;
Use WLHost.Instance whenever your extension needs access to functionality exposed by the IHost interface.
Descriptive Properties
public abstract string Name
Override this property to return the name of the Data Panel ScoreCard. The name appears in the ScoreCard selector in the WealthLab Data Panel.
Calculating and Displaying Values
public abstract List<DataPanelItem> GetItems(
BarHistory bars,
int idx,
List<IndicatorBase> plottedIndicators)
Override this method to return the values that should be displayed in the Data Panel for the current chart bar. The parameters provide:
- bars - The BarHistory currently displayed on the chart.
- idx - The index of the chart bar currently under the mouse cursor.
- plottedIndicators - The IndicatorBase instances currently plotted on the chart.
Create and return a List<DataPanelItem> containing one DataPanelItem for each row you want displayed. The DataPanelItem class provides several constructors that allow you to specify string or numeric values and optionally control the color used to display the item. For example, a ScoreCard might return rows containing the current bar's OHLC values along with values from Indicators plotted on the chart.