WSTL: Writing Labels to Panes
Author: grahamgk
Creation Date: 10/10/2009 6:15 PM
profile picture

grahamgk

#1
The WL4.5 ChartScript that I translated to WL5.5 has 4 ChartPanes that are generated, in addition to the PricePane. In some of them, it does not print the label and, in some, it generates its own label, such as: "WLSeries10".

Here is the code that generates the pane with the label, "WLSeries10", but it does not print the label ".VIX" (that it should with the DrawText command):

int VIXSeries, VIXPane = 0;
public /** declare Jumpy series and panes */
VIXSeries = (int)CreateSeries();
VIXPane = CreatePane(50, true, true);
/** create VIX values for VIXPane pane */
SetPrimarySeries(".VIX");
for (j = 21; j <= ((Bars.Count - 1)); j++) {
SetSeriesValue(j, VIXSeries, PriceClose(j));

}
PlotSeries(VIXSeries, VIXPane, WL_BLUE, WL_THIN);
DrawText(".VIX", VIXPane, 5, 3, WL_BLUE, 9);
RestoreContext();

Everything else is OK with this. It generates and plots the series based on the commands shown.
profile picture

Eugene

#2
QUOTE:
In some of them, it does not print the label and, in some, it generates its own label, such as: "WLSeries10".

This one is OK - there are no pane labels in V5 any more. WL5 will automatically display the plotted series description aka "its own label". WLSeries10 seems like WSTL's internal naming for a V4 series that had no explicit description string.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).