Skip to content

OutputAttribute.PlotType

property · OutputAttribute · cAlgo.API

DesktopCLICloud

Plot type.

Definition

public PlotType PlotType {get; set;}
outputAttribute.PlotType: PlotType

Returns PlotType

Examples

public partial class OutputSample : Indicator
{
    public override void Calculate(int index)
    {
        Body[index] = Bars.ClosePrices[index] - Bars.OpenPrices[index];
    }
}
def calculate(self, index):
    api.Body[index] = api.Bars.ClosePrices[index] - api.Bars.OpenPrices[index]
{
  "AccessRights": "None",
  "IsOverlay": false,
  "LineOutputs": [
    {
      "Name": "Body",
      "Color": "Yellow",
      "PlotType": "Histogram"
    }
  ]
}