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

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

# IndicatorAttribute.IsPercentage

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

## IsPercentage

Gets or sets whether the indicator is a percentage indicator. If one or more percentage indicators are added to the same panel, they will share the same scale. The default value is `false`.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
indicatorAttribute.IsPercentage: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
public partial class PercentageChangeSample : Indicator
{
    public override void Calculate(int index)
    {
        Result[index] = (Bars.ClosePrices[index] - Bars.OpenPrices[index]) / Bars.OpenPrices[index] * 100;
    }
}
```

Python:

```python
def calculate(self, index):
    api.Result[index] = (api.Bars.ClosePrices[index] - api.Bars.OpenPrices[index]) / api.Bars.OpenPrices[index] * 100
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": false,
  "IsPercentage": true,
  "LineOutputs": [
    {
      "Name": "Result",
      "DisplayName": "Change %"
    }
  ]
}
```

