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

# DisplayName

## Definition

Determines the text display on the chart panel.  This is also listed in the UI as the "Label" which can be manually changed (if not overridden).  The default behavior of this property will include the NinjaScript type Name along with its input and data series parameters.  However this behavior can be overridden if desired.

For modifying the string which is used in the list of available indicators, please see the [Name](/developer/desktop-sdk/references/common/name) property.

## Property Value

A virtual string.  This property is read-only.

## Syntax

`DisplayName`

You may choose to override this property using the following syntax:

```csharp
public override string DisplayName
{
  get { }
}
```

## Examples

### Printing the default DisplayName which displays on the chart label

```csharp
protected override void OnStateChange()
{
  if (State == State.SetDefaults)
  {
    Name = "Example Indicator";
  }
}

protected override void OnBarUpdate()
{
  Print(DisplayName);   //Output:  Example Indicator(ES 03-15 (1 Minute))
}
```

### Overriding the DisplayName to customize the chart label

```csharp
protected override void OnStateChange()
{
  if (State == State.SetDefaults)
  {
    Name = "Example Indicator";
  }
}

public override string DisplayName
{
  get { return "My Custom Display " + Name; }
}

protected override void OnBarUpdate()
{
  Print(DisplayName);   //Output:  My Custom Display Example Indicator
}
```