Skip to content

BarOutputAttribute.Name

property · BarOutputAttribute · cAlgo.API Since 5.4

DesktopCLICloud

The output name

Definition

public string Name {get;}
barOutputAttribute.Name: str

Returns string

Examples

public partial class BarOutputSample : Indicator
{
    public override void Calculate(int index)
    {
        var close = (Bars.OpenPrices[index] + Bars.HighPrices[index] + Bars.LowPrices[index] + Bars.ClosePrices[index]) / 4;
        SmoothedBars[index] = new OhlcvBar(Bars.OpenPrices[index], Bars.HighPrices[index], Bars.LowPrices[index], close, (long)Bars.TickVolumes[index]);
    }
}
def calculate(self, index):
    close = (api.Bars.OpenPrices[index] + api.Bars.HighPrices[index] + api.Bars.LowPrices[index] + api.Bars.ClosePrices[index]) / 4
    api.SmoothedBars[index] = OhlcvBar(api.Bars.OpenPrices[index], api.Bars.HighPrices[index], api.Bars.LowPrices[index], close, int(api.Bars.TickVolumes[index]))
{
  "AccessRights": "None",
  "IsOverlay": false,
  "BarOutputs": [
    {
      "Name": "SmoothedBars",
      "DisplayName": "Smoothed Bars"
    }
  ]
}