Skip to content

ChartTemplateAlgoInstanceParameter.Name

property · ChartTemplateAlgoInstanceParameter · cAlgo.API Since 5.6

DesktopCLICloud

Gets the name of a 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

string Name {get;}
chartTemplateAlgoInstanceParameter.Name: str

Returns string

Examples

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