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

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

# IndicatorLineOutput.Thickness

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

## Thickness

Gets or sets the thickness of a line.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
float Thickness {get; set;}
```

Python:

```python
indicatorLineOutput.Thickness: float
```

### Returns

`float` — 

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.Thickness = 2;
Print("{0} line thickness: {1}", line.Name, line.Thickness);
```

Python:

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

