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

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

# IndicatorLineOutput.Color

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

## Color

Gets or sets the `Color` of a line.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
Color Color {get; set;}
```

Python:

```python
indicatorLineOutput.Color: Color
```

### Returns

`Color` — 

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

Python:

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

