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

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

# ChartIcon.Time

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

## Time

Gets or sets the Time value of the icon location.

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

Python:

```python
chartIcon.Time: DateTime
```

### Returns

`DateTime` — 

### Examples

C#:

```csharp
var icon = Chart.DrawIcon("signal", ChartIconType.UpArrow, Bars.OpenTimes.LastValue, Bars.LowPrices.LastValue, Color.Green);
icon.Time = Bars.OpenTimes.Last(1);
Print("Icon time: {0}", icon.Time);
```

Python:

```python
icon = api.Chart.DrawIcon("signal", ChartIconType.UpArrow, api.Bars.OpenTimes.LastValue, api.Bars.LowPrices.LastValue, Color.Green)
icon.Time = api.Bars.OpenTimes.Last(1)
api.Print(f"Icon time: {icon.Time}")
```

