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

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

# OutputAttribute.PlotType

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

## PlotType

Plot type.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public PlotType PlotType {get; set;}
```

Python:

```python
outputAttribute.PlotType: PlotType
```

### Returns

`PlotType` — 

### Examples

C#:

```csharp
public partial class OutputSample : Indicator
{
    public override void Calculate(int index)
    {
        Body[index] = Bars.ClosePrices[index] - Bars.OpenPrices[index];
    }
}
```

Python:

```python
def calculate(self, index):
    api.Body[index] = api.Bars.ClosePrices[index] - api.Bars.OpenPrices[index]
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": false,
  "LineOutputs": [
    {
      "Name": "Body",
      "Color": "Yellow",
      "PlotType": "Histogram"
    }
  ]
}
```

