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

# IsChartOnly

## Definition

If true, any indicator will be only available for charting usage - indicators with this property enabled would for example not be expected to show if called in a SuperDOM or MarketAnalyzer window.

## Property Value

This property returns true if the indicator can only be used on a chart; otherwise, false. Default set to false.

This property should ONLY be set from the **OnStateChange()** method during **State.SetDefaults** or **State.Configure**.

## Syntax

`IsChartOnly`

## Examples

```csharp
protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        IsChartOnly = true; // Allow the indicator to work in charting environment only       
    }
}
```