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

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

# AlgoParameterType (enum)

Represents the different types of algorithm parameters.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum AlgoParameterType
```

## 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"
}
```

## Values

- `AlgoParameterType.Integer` — Represents a parameter of type int .
- `AlgoParameterType.Double` — Represents a parameter of type double .
- `AlgoParameterType.Boolean` — Represents a parameter of type bool .
- `AlgoParameterType.String` — Represents a parameter of type string .
- `AlgoParameterType.Enum` — Represents a parameter of type enum .
- `AlgoParameterType.DataSeries` — Represents a parameter of type DataSeries .
- `AlgoParameterType.Color` — Represents a parameter of type Color .
- `AlgoParameterType.TimeFrame` — Represents a parameter of type TimeFrame .
- `AlgoParameterType.Symbol` — Represents a parameter of type Symbol .
- `AlgoParameterType.DateTime` — Represents a parameter of type DateTime .
- `AlgoParameterType.DateOnly` — Represents a parameter of type DateOnly .
- `AlgoParameterType.TimeSpan` — Represents a parameter of type TimeSpan .
- `AlgoParameterType.MultiEnum` — Represents a parameter of type Enum[] .
- `AlgoParameterType.MultiSymbol` — Represents a parameter of type Symbol[] .
- `AlgoParameterType.MultiTimeFrame` — Represents a parameter of type TimeFrame[] .
- `AlgoParameterType.File` — Represents a parameter of type File .
- `AlgoParameterType.MultiFile` — Represents a parameter of type MultiFile .

