---
id: "P:cAlgo.API.AlgoInstanceParameters.Item(System.Int32)"
kind: "property"
type: "T:cAlgo.API.AlgoInstanceParameters"
url: "https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoInstanceParameters/Item/"
---

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

# AlgoInstanceParameters.Item

Member of [AlgoInstanceParameters](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoInstanceParameters/index.md).

## Item

Gets a parameter by it is index.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
AlgoInstanceParameter Item {get;}
```

Python:

```python
algoInstanceParameters[index: int] -> AlgoInstanceParameter
```

### Parameters

- `index` (`int`, Python `int`): Parameter Index

### Returns

`AlgoInstanceParameter` — 

### Examples

C#:

```csharp
var indicator = Chart.Indicators.Add("Simple Moving Average");
var firstParameter = indicator.Parameters[0];
if (firstParameter != null)
    Print("First parameter: {0} = {1}", firstParameter.Name, firstParameter.Value);
```

Python:

```python
indicator = api.Chart.Indicators.Add("Simple Moving Average")
firstParameter = indicator.Parameters[0]
if firstParameter is not None:
    api.Print(f"First parameter: {firstParameter.Name} = {firstParameter.Value}")
```

## Item

Gets a parameter by it is name.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
AlgoInstanceParameter Item {get;}
```

Python:

```python
algoInstanceParameters[name: str] -> AlgoInstanceParameter
```

### Parameters

- `name` (`string`, Python `str`): Parameter Name

### Returns

`AlgoInstanceParameter` — 

### Examples

C#:

```csharp
var indicator = Chart.Indicators.Add("Simple Moving Average");
var periods = indicator.Parameters["Periods"];
if (periods != null)
    Print("Periods: {0}", periods.Value);
```

Python:

```python
indicator = api.Chart.Indicators.Add("Simple Moving Average")
periods = indicator.Parameters["Periods"]
if periods is not None:
    api.Print(f"Periods: {periods.Value}")
```

