Skip to content

ChartTemplateIndicators.Count

property · ChartTemplateIndicators · cAlgo.API Since 5.6

DesktopCLICloud

Gets the number of all indicators attached to a chart template.

Environment behaviour

Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplate.Indicators).

Definition

int Count {get;}
chartTemplateIndicators.Count: int

Returns int

Examples

var template = ChartTemplates.Get("My Template");
if (template != null)
    Print("Indicators in the template: {0}", template.Indicators.Count);
template = api.ChartTemplates.Get("My Template")
if template is not None:
    api.Print(f"Indicators in the template: {template.Indicators.Count}")