> 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](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/0dab0232d60fe5f7fb8b5dfd088fe5e11eb772b6c3268253b7b2885485d19b9e/docs/assets/developer/desktop-sdk/references/chartobjects-chartpanel-chartobjects.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T070246Z&X-Amz-Expires=604800&X-Amz-Signature=fcb9385d09f740d70a1aa536eb992498b2e478af95375fe4b7ecf06b460db303&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)