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

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

# CloudAttribute.Opacity

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

## Opacity

The cloud opacity. Value can be set from 0 (transparent) to 1 (opaque). Values higher than 1 will be set to 1, values below 0 will be set to 0. Opacity is multiplied by the alpha channel of the active color (first or second color). Default opacity value is 0.2.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public double Opacity {get; set;}
```

Python:

```python
cloudAttribute.Opacity: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
public partial class CloudSample : Indicator
{
    public override void Calculate(int index)
    {
        High[index] = Bars.HighPrices[index];
        Low[index] = Bars.LowPrices[index];
    }
}
```

Python:

```python
def calculate(self, index):
    api.High[index] = api.Bars.HighPrices[index]
    api.Low[index] = api.Bars.LowPrices[index]
```

config.json:

```json
{
  "AccessRights": "None",
  "IsOverlay": true,
  "LineOutputs": [
    {
      "Name": "High",
      "Color": "Green"
    },
    {
      "Name": "Low",
      "Color": "Red"
    }
  ],
  "Clouds": [
    {
      "FirstLineName": "High",
      "SecondLineName": "Low",
      "Opacity": 0.5
    }
  ]
}
```

