Skip to content

OutputAttribute.IsVisible

property · OutputAttribute · cAlgo.API Since 5.8

DesktopCLICloud

Gets or sets default visibility of output.

Definition

public bool IsVisible {get; set;}
outputAttribute.IsVisible: bool

Returns bool

Examples

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