PanelIndex

View as Markdown

Definition

The panel on which the chart scale resides.

This value is NOT the same value as the indicator’s PanelUI. PanelIndex will provide the actual indexed value of the chart panel used for this chart scale.

Property Value

An int value representing the panel as an index value which starts at 0 and will increment for each panel configured on the chart. This property is read-only.

Syntax

\<chartscale\>.PanelIndex

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 // the index value of the panel (not the same as the panelUI)
4 int panel = chartScale.PanelIndex;
5 Print("panel: " + panel);
6}