ChartTemplateIndicator.Id
property · ChartTemplateIndicator · cAlgo.API Since 5.6
DesktopCLICloud
Gets the ID of a specific 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
string Id {get;}
chartTemplateIndicator.Id: str
Returns string
Examples
var template = ChartTemplates.Get("My Template");
var indicator = template?.Indicators.FirstOrDefault();
if (indicator != null)
Print("Found again by id: {0}", template.Indicators.Get(indicator.Id) != null);
template = api.ChartTemplates.Get("My Template")
if template is not None:
for indicator in template.Indicators:
api.Print(f"Indicator id: {indicator.Id}")