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

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

# AlgoParameter (interface)

Represents an algorithm parameter.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface AlgoParameter
```

## Examples

C#:

```csharp
public partial class TestExample : Robot
{
    protected override void OnStart()
    {
        if (AlgoRegistry.Get("Simple Moving Average", AlgoKind.StandardIndicator) is not IndicatorType smaIndicatorType)
            return;

        foreach (var parameter in smaIndicatorType.Parameters)
        {
            Print($"Name: {parameter.Name} | DefaultValue: {parameter.DefaultValue} | 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):
        indicatorType = api.AlgoRegistry.Get("Simple Moving Average", AlgoKind.StandardIndicator)

        if indicatorType is None:
            return

        for parameter in IndicatorType(indicatorType).Parameters:
            print(f"Name: {parameter.Name} | DefaultValue: {parameter.DefaultValue} | Type: {parameter.Type}")
```

config.json:

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

## Properties

- `object DefaultValue {get;}` — Gets default value of the parameter. [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoParameter/DefaultValue/index.md)
- `string Name {get;}` — Gets Parameter name. [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoParameter/Name/index.md)
- `AlgoParameterType Type {get;}` — Gets parameter type. [details](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoParameter/Type/index.md)

