---
id: "P:cAlgo.API.CustomSymbolNewChartEventArgs.CustomSymbol"
kind: "property"
type: "T:cAlgo.API.CustomSymbolNewChartEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/CustomSymbolNewChartEventArgs/CustomSymbol/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# CustomSymbolNewChartEventArgs.CustomSymbol

Member of [CustomSymbolNewChartEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/CustomSymbolNewChartEventArgs/index.md).

## CustomSymbol

Gets custom symbol.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
public CustomSymbol CustomSymbol {get;}
```

Python:

```python
customSymbolNewChartEventArgs.CustomSymbol: CustomSymbol
```

### Returns

`CustomSymbol` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
protected override void OnStart()
{
    var customSymbol = CustomSymbols.Add("EURUSD.custom", Symbols.GetSymbol("EURUSD"));
    customSymbol.NewChart += OnCustomSymbolNewChart;
}

private void OnCustomSymbolNewChart(CustomSymbolNewChartEventArgs args)
{
    Print("Chart opened for custom symbol {0}, pip digits: {1}", args.CustomSymbol.Name, args.CustomSymbol.PipDigits);
}
```

Python:

```python
def on_start(self):
    customSymbol = api.CustomSymbols.Add("EURUSD.custom", api.Symbols.GetSymbol("EURUSD"))
    customSymbol.NewChart += self.on_custom_symbol_new_chart

def on_custom_symbol_new_chart(self, args):
    api.Print(f"Chart opened for custom symbol {args.CustomSymbol.Name}, pip digits: {args.CustomSymbol.PipDigits}")
```

