---
id: "M:cAlgo.API.CloudAttribute.#ctor(System.String,System.String)"
kind: "constructor"
type: "T:cAlgo.API.CloudAttribute"
url: "https://help.ctrader.com/ctrader-algo/references/Attributes/CloudAttribute/Constructor/"
---

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

# CloudAttribute constructor

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

## CloudAttribute(string firstLineName, string secondLineName)

The cloud between the indicator lines.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public CloudAttribute(string firstLineName, string secondLineName)
```

Python:

```python
CloudAttribute(firstLineName: str, secondLineName: str)
```

### Parameters

- `firstLineName` (`string`, Python `str`): 
- `secondLineName` (`string`, Python `str`):

### 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"
    }
  ]
}
```

