---
id: "T:cAlgo.API.AlgoInstanceParameters"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoInstanceParameters/"
---

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

# AlgoInstanceParameters (interface)

Represents the collection of all the parameters of an indicator or Robot.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface AlgoInstanceParameters
```

## Examples

C#:

```csharp
public partial class Test : Robot
{
    protected override void OnStart()
    {
        var chartIndicator = Chart.Indicators.Add("Simple Moving Average");

        foreach (var parameter in chartIndicator.Parameters)
        {
            Print($"Name: {parameter.Name} | DisplayName: {parameter.DisplayName} | Value: {parameter.Value} | Type: {parameter.Type}");
        }
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        chartIndicator = api.Chart.Indicators.Add("Simple Moving Average")

        for parameter in chartIndicator.Parameters:
            print(f"Name: {parameter.Name} | DisplayName: {parameter.DisplayName} | Value: {parameter.Value} | Type: {parameter.Type}")
```

config.json:

```json
{
  "AccessRights": "None"
}
```

C#:

```csharp
public partial class Test : Robot
{
    protected override void OnStart()
    {
        var chartRobot = Chart.Robots.Add("Sample Break Even");
        foreach (var parameter in chartRobot.Parameters)
        {
            Print($"Name: {parameter.Name} | DisplayName: {parameter.DisplayName} | Value: {parameter.Value} | Type: {parameter.Type}");
        }
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        chartRobot = api.Chart.Robots.Add("Sample Break Even")

        for parameter in chartRobot.Parameters:
            print(f"Name: {parameter.Name} | DisplayName: {parameter.DisplayName} | Value: {parameter.Value} | Type: {parameter.Type}")
```

config.json:

```json
{
  "AccessRights": "None"
}
```

## Properties

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

