ChartTemplateIndicator
interface cAlgo.API Since 5.6
DesktopCLICloud
The interface representing an indicator of 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 (ChartTemplateIndicators, ChartTemplateIndicators.Add, ChartTemplateIndicators.Get).
Definition
public interface ChartTemplateIndicator
Namespace: cAlgo.API · Group: Templates
Examples
var template = ChartTemplates.Get("My Template");
if (template != null)
{
foreach (var indicator in template.Indicators)
Print("Id: {0} | Type: {1} | Parameters: {2}", indicator.Id, indicator.Type.Name, indicator.Parameters.Count);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
for indicator in template.Indicators:
api.Print(f"Id: {indicator.Id} | Type: {indicator.Type.Name} | Parameters: {indicator.Parameters.Count}")
Properties
| Name | Description |
|---|---|
IdDesktopCLICloudstring | Gets the ID of a specific indicator. |
ParametersDesktopCLICloudChartTemplateAlgoInstanceParameters | Gets the collection of indicator parameters. |
TypeDesktopCLICloudIndicatorType | Gets the IndicatorType of an indicator. |