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

# SetPropertyName()

## Definition

Sets a default property name to a custom string to be displayed on the UI.

## Method Return Value

This method does not return a value.

## Syntax

`SetPropertyName(string propertyName, string displayName)`

## Method Parameters

| Parameter    | Description                                                                                                                                                                                                                                                                                |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| propertyName | A string representing the property to be renamed. Possible values include:<br />• UpBrush<br />• DownBrush<br />• BarWidth<br />• Stroke<br />• Stroke2<br />• Value<br />• Value2<br />• BaseBarsPeriodType<br />• BaseBarsPeriodValue<br />• PointAndFigurePriceType<br />• ReversalType |
| displayName  | A string representing the desired property name                                                                                                                                                                                                                                            |

## Examples

```csharp
protected override void OnStateChange()
{
    if (State == State.Configure)
    {
        Properties.Remove(Properties.Find("Stroke", true));
        Properties.Remove(Properties.Find("Stroke2", true));

        SetPropertyName("UpBrush", "AdvanceBar");
        SetPropertyName("DownBrush", "DeclineBar");
    }
}
```

If you do not wish to use specific properties accessible via **SetPropertyName()**, you will need to remove them from the list via **Properties.Remove**, as shown in the example above.