Skip to content

CloudAttribute constructor

constructor · CloudAttribute · cAlgo.API

DesktopCLICloud

The cloud between the indicator lines.

Definition

public CloudAttribute(string firstLineName, string secondLineName)
CloudAttribute(firstLineName: str, secondLineName: str)

Parameters

Name C# type Python type Description
firstLineName string str
secondLineName string str

Examples

public partial class CloudSample : Indicator
{
    public override void Calculate(int index)
    {
        High[index] = Bars.HighPrices[index];
        Low[index] = Bars.LowPrices[index];
    }
}
def calculate(self, index):
    api.High[index] = api.Bars.HighPrices[index]
    api.Low[index] = api.Bars.LowPrices[index]
{
  "AccessRights": "None",
  "IsOverlay": true,
  "LineOutputs": [
    {
      "Name": "High",
      "Color": "Green"
    },
    {
      "Name": "Low",
      "Color": "Red"
    }
  ],
  "Clouds": [
    {
      "FirstLineName": "High",
      "SecondLineName": "Low"
    }
  ]
}