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

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

# IndicatorAttribute.IsOverlay

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

## IsOverlay

Indicates whether this instance is overlayed on the chart or plotted on a separate indicator panel

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
indicatorAttribute.IsOverlay: bool
```

### Returns

`bool` — The IsOverlay property sets the value true if this Indicator should be plotted on the chart panel; false if the indicator should be plotted on a separate Indicator Panel

### Examples

C#:

```csharp
public partial class MedianPriceSample : Indicator
{
    public override void Calculate(int index)
    {
        Median[index] = (Bars.HighPrices[index] + Bars.LowPrices[index]) / 2;
    }
}
```

Python:

```python
def calculate(self, index):
    api.Median[index] = (api.Bars.HighPrices[index] + api.Bars.LowPrices[index]) / 2
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": true,
  "LineOutputs": [
    {
      "Name": "Median",
      "Color": "Orange"
    }
  ]
}
```

