Skip to content

IndicatorType.Bars

property · IndicatorType · cAlgo.API Since 5.4

DesktopCLICloud

Gets collection of indicator bar outputs.

Definition

IReadonlyList<IndicatorTypeBarOutput> Bars {get;}
indicatorType.Bars: IReadonlyList[IndicatorTypeBarOutput]

Returns IReadonlyList<IndicatorTypeBarOutput>

Examples

foreach (var indicatorType in AlgoRegistry.Indicators)
{
    foreach (var barOutput in indicatorType.Bars)
        Print("{0} bar output: {1}", indicatorType.Name, barOutput.Name);
}
for indicatorType in api.AlgoRegistry.Indicators:
    for barOutput in indicatorType.Bars:
        api.Print(f"{indicatorType.Name} bar output: {barOutput.Name}")