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

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

# IndicatorAttribute.AutoRescale

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

## AutoRescale

Indicates whether this instance automatically rescales the chart or not. Default value is true.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public bool AutoRescale {get; set;}
```

Python:

```python
indicatorAttribute.AutoRescale: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
public partial class SampleIndicator : Indicator
{
    public override void Calculate(int index)
    {
        Result[index] = Bars.HighPrices[index] + 50 * Symbol.PipSize;
    }
}
```

Python:

```python
def calculate(self, index):
    api.Result[index] = api.Bars.HighPrices[index] + 50 * api.Symbol.PipSize
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": true,
  "AutoRescale": false,
  "LineOutputs": [
    {
      "Name": "Result",
      "DisplayName": "Main"
    }
  ]
}
```

