---
id: "M:cAlgo.API.ChartIndicators.Remove(cAlgo.API.ChartIndicator)"
kind: "method"
type: "T:cAlgo.API.ChartIndicators"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Indicators/ChartIndicators/Remove/"
---

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

# ChartIndicators.Remove

Member of [ChartIndicators](https://help.ctrader.com/ctrader-algo/references/Chart/Indicators/ChartIndicators/index.md).

## Remove(ChartIndicator indicator)

Removes an indicator from a chart.

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

- Cloud: Always empty: Count is 0, Add returns null, Remove returns false, and the events never fire.

C#:

```csharp
bool Remove(ChartIndicator indicator)
```

Python:

```python
api.ChartIndicators.Remove(indicator: ChartIndicator) -> bool
```

### Parameters

- `indicator` (`ChartIndicator`, Python `ChartIndicator`): The `ChartIndicator` to be removed from a chart.

### Returns

`bool` — True if remove was successful otherwise false.

### Examples

C#:

```csharp
var sma = ChartIndicators.Add("Simple Moving Average", Bars.ClosePrices, 20);
var isRemoved = ChartIndicators.Remove(sma);
Print("Indicator removed: {0}", isRemoved);
```

Python:

```python
sma = api.ChartIndicators.Add("Simple Moving Average", api.Bars.ClosePrices, 20)
isRemoved = api.ChartIndicators.Remove(sma)
api.Print(f"Indicator removed: {isRemoved}")
```

