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

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

# IndicatorLineOutput.LineStyle

Member of [IndicatorLineOutput](https://help.ctrader.com/ctrader-algo/references/Chart/Indicators/IndicatorLineOutput/index.md).

## LineStyle

Gets or sets the `LineStyle` of a line.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
indicatorLineOutput.LineStyle: LineStyle
```

### Returns

`LineStyle` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
var sma = ChartIndicators.Add("Simple Moving Average", Bars.ClosePrices, 20);
var line = sma.LineOutputs[0];
line.LineStyle = LineStyle.Dots;
Print("{0} line style: {1}", line.Name, line.LineStyle);
```

Python:

```python
sma = api.ChartIndicators.Add("Simple Moving Average", api.Bars.ClosePrices, 20)
line = sma.LineOutputs[0]
line.LineStyle = LineStyle.Dots
api.Print(f"{line.Name} line style: {line.LineStyle}")
```

