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

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

# ChartObject.IsInteractive

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

## IsInteractive

Defines whether the instance is interactive. The non-interactive chart objects cannot be selected, have no hover effect and cannot be searched. Available only for the current cBot or Indicator and will be removed when the cBot/Indicator stops.

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 IsInteractive {get; set;}
```

Python:

```python
chartObject.IsInteractive: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var line = Chart.DrawHorizontalLine("support", Bars.LowPrices.LastValue, Color.Green);
line.IsInteractive = true;
Print("User can select and move the line: {0}", line.IsInteractive);
```

Python:

```python
line = api.Chart.DrawHorizontalLine("support", api.Bars.LowPrices.LastValue, Color.Green)
line.IsInteractive = True
api.Print(f"User can select and move the line: {line.IsInteractive}")
```

