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

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

# OutputAttribute.LineColor

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

## LineColor

Gets or sets the Color of the Output property. This Color will be used when the line for this Output is plotted.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string LineColor {get; set;}
```

Python:

```python
outputAttribute.LineColor: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
public partial class OutputSample : Indicator
{
    public override void Calculate(int index)
    {
        Result[index] = Bars.ClosePrices[index];
    }
}
```

Python:

```python
def calculate(self, index):
    api.Result[index] = api.Bars.ClosePrices[index]
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": true,
  "LineOutputs": [
    {
      "Name": "Result",
      "DisplayName": "Main",
      "Color": "#008000"
    }
  ]
}
```

