> This page is for NinjaScript.

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

# ChartObjects

## Definition

A collection of objects configured on the chart panel.

## Property Value

An **IList** of **Gui.NinjaScript.IChartObject** instances containing references to the objects configured on the panel.

## Syntax

`ChartPanel.ChartObjects`

## Examples

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
    base.OnRender(chartControl, chartScale);

    IList<Gui.NinjaScript.IChartObject> myObjects = ChartPanel.ChartObjects;

    foreach (Gui.NinjaScript.IChartObject thisObject in myObjects)
    {
        Print(String.Format("{0} is of type {1}", thisObject.Name, thisObject.GetType()));
    }
}
```

The image below shows the output of the code example above, while applied in a chart panel with three objects.

![ChartPanel\_ChartObjects](/_fern-files/ninjatrader-public.docs.buildwithfern.com/0dab0232d60fe5f7fb8b5dfd088fe5e11eb772b6c3268253b7b2885485d19b9e/docs/assets/developer/desktop-sdk/references/chartobjects-chartpanel-chartobjects.png)