Skip to content

ChartTemplateAlgoInstanceParameter

interface cAlgo.API Since 5.6

DesktopCLICloud

The interface representing a chart template indicator / robot instance parameter.

Environment behaviour

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

Definition

public interface ChartTemplateAlgoInstanceParameter

Namespace: cAlgo.API · Group: Templates

Examples

var template = ChartTemplates.Get("My Template");
if (template != null)
{
    foreach (var indicator in template.Indicators)
    {
        foreach (var parameter in indicator.Parameters)
            Print("{0}: {1} = {2}", indicator.Type.Name, parameter.Name, parameter.Value);
    }
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
    for indicator in template.Indicators:
        for parameter in indicator.Parameters:
            api.Print(f"{indicator.Type.Name}: {parameter.Name} = {parameter.Value}")

Properties

Name Description
NameDesktopCLICloudstring Gets the name of a parameter.
ValueDesktopCLICloudobject Gets the value of a parameter.