---
id: "T:cAlgo.API.ChartTemplateAlgoInstanceParameters"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateAlgoInstanceParameters/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartTemplateAlgoInstanceParameters (interface)

Represents the collection of all the parameters of a chart template indicator or Robot.

Environments: Desktop supported · CLI supported · Cloud not supported.

- Cloud: Never available in the cloud: it is only returned by members that do not work there (ChartTemplateIndicator.Parameters, ChartTemplateRobot.Parameters).

## Definition

```csharp
public interface ChartTemplateAlgoInstanceParameters
```

Available since cAlgo.API 5.6.

## Examples

C#:

```csharp
var template = ChartTemplates.Get("My Template");
var robot = template?.Robots.FirstOrDefault();
if (robot != null)
{
    Print("{0} has {1} parameters", robot.Type.Name, robot.Parameters.Count);
    foreach (var parameter in robot.Parameters)
        Print("{0} = {1}", parameter.Name, parameter.Value);
}
```

Python:

```python
template = api.ChartTemplates.Get("My Template")
if template is not None:
    for robot in template.Robots:
        api.Print(f"{robot.Type.Name} has {robot.Parameters.Count} parameters")
        for parameter in robot.Parameters:
            api.Print(f"{parameter.Name} = {parameter.Value}")
```

## Properties

- `int Count {get;}` — Gets the number of parameters. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateAlgoInstanceParameters/Count/index.md)
- `ChartTemplateAlgoInstanceParameter Item {get;}` — Gets a parameter by it is name. [details](https://help.ctrader.com/ctrader-algo/references/Chart/Templates/ChartTemplateAlgoInstanceParameters/Item/index.md)

