> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# PanelIndex

## 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

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