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

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

# OutputAttribute.LineStyle

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

## LineStyle

Gets or sets the Line Style for given Output property. By default it is set to Solid

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
outputAttribute.LineStyle: LineStyle
```

### Returns

`LineStyle` — 

### Examples

C#:

```csharp
public partial class OutputSample : Indicator
{
    private SimpleMovingAverage _sma;

    protected override void Initialize()
    {
        _sma = Indicators.SimpleMovingAverage(Bars.ClosePrices, 20);
    }

    public override void Calculate(int index)
    {
        Sma[index] = _sma.Result[index];
    }
}
```

Python:

```python
class OutputSample():
    def initialize(self):
        self.sma = api.Indicators.SimpleMovingAverage(api.Bars.ClosePrices, 20)

    def calculate(self, index):
        api.Sma[index] = self.sma.Result[index]
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": true,
  "LineOutputs": [
    {
      "Name": "Sma",
      "DisplayName": "Simple Moving Average",
      "Style": "Lines"
    }
  ]
}
```

