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

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

# BarOutputAttribute.Name

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

## Name

The output name

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string Name {get;}
```

Python:

```python
barOutputAttribute.Name: str
```

### Returns

`string` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
public partial class BarOutputSample : Indicator
{
    public override void Calculate(int index)
    {
        var close = (Bars.OpenPrices[index] + Bars.HighPrices[index] + Bars.LowPrices[index] + Bars.ClosePrices[index]) / 4;
        SmoothedBars[index] = new OhlcvBar(Bars.OpenPrices[index], Bars.HighPrices[index], Bars.LowPrices[index], close, (long)Bars.TickVolumes[index]);
    }
}
```

Python:

```python
def calculate(self, index):
    close = (api.Bars.OpenPrices[index] + api.Bars.HighPrices[index] + api.Bars.LowPrices[index] + api.Bars.ClosePrices[index]) / 4
    api.SmoothedBars[index] = OhlcvBar(api.Bars.OpenPrices[index], api.Bars.HighPrices[index], api.Bars.LowPrices[index], close, int(api.Bars.TickVolumes[index]))
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": false,
  "BarOutputs": [
    {
      "Name": "SmoothedBars",
      "DisplayName": "Smoothed Bars"
    }
  ]
}
```

