ChartTemplateIndicator.Type
property · ChartTemplateIndicator · cAlgo.API Since 5.6
DesktopCLICloud
Gets the IndicatorType of an indicator.
Environment behaviour
Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplateIndicators, ChartTemplateIndicators.Add, ChartTemplateIndicators.Get).
Definition
IndicatorType Type {get;}
chartTemplateIndicator.Type: IndicatorType
Returns IndicatorType
Examples
var template = ChartTemplates.Get("My Template");
if (template != null)
{
foreach (var indicator in template.Indicators)
Print("Indicator type: {0} | Kind: {1}", indicator.Type.Name, indicator.Type.AlgoKind);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
for indicator in template.Indicators:
api.Print(f"Indicator type: {indicator.Type.Name} | Kind: {indicator.Type.AlgoKind}")