---
id: "P:cAlgo.API.IndicatorAttribute.TimeZone"
kind: "property"
type: "T:cAlgo.API.IndicatorAttribute"
url: "https://help.ctrader.com/ctrader-algo/references/Attributes/IndicatorAttribute/TimeZone/"
---

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

# IndicatorAttribute.TimeZone

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

## TimeZone

Gets or sets the chart timezone of the displayed indicator.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string TimeZone {get; set;}
```

Python:

```python
indicatorAttribute.TimeZone: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
public partial class SampleIndicator : Indicator
{
    protected override void Initialize()
    {
        Print("Indicator time zone: {0}, last bar opened at {1}", TimeZone.DisplayName, Bars.LastBar.OpenTime);
    }

    public override void Calculate(int index)
    {
    }
}
```

Python:

```python
def initialize(self):
    api.Print(f"Indicator time zone: {api.TimeZone.DisplayName}, last bar opened at {api.Bars.LastBar.OpenTime}")
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "Eastern Standard Time",
  "IsOverlay": true
}
```

