---
id: "P:cAlgo.API.ChartObject.IsAlive"
kind: "property"
type: "T:cAlgo.API.ChartObject"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartObject/IsAlive/"
---

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

# ChartObject.IsAlive

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

## IsAlive

Defines if the chart object still exists on the chart.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

```csharp
bool IsAlive {get;}
```

Python:

```python
chartObject.IsAlive: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
Chart.RemoveObject(line.Name);
Print("Line still on the chart: {0}", line.IsAlive);
```

Python:

```python
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
api.Chart.RemoveObject(line.Name)
api.Print(f"Line still on the chart: {line.IsAlive}")
```

