Skip to content

OutputAttribute.LineColor

property · OutputAttribute · cAlgo.API

DesktopCLICloud

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

Definition

public string LineColor {get; set;}
outputAttribute.LineColor: str

Returns string

Examples

public partial class OutputSample : Indicator
{
    public override void Calculate(int index)
    {
        Result[index] = Bars.ClosePrices[index];
    }
}
def calculate(self, index):
    api.Result[index] = api.Bars.ClosePrices[index]
{
  "AccessRights": "None",
  "IsOverlay": true,
  "LineOutputs": [
    {
      "Name": "Result",
      "DisplayName": "Main",
      "Color": "#008000"
    }
  ]
}