---
id: "P:cAlgo.API.AlgoInstanceParameter.Value"
kind: "property"
type: "T:cAlgo.API.AlgoInstanceParameter"
url: "https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoInstanceParameter/Value/"
---

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

# AlgoInstanceParameter.Value

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

## Value

Gets the value of a parameter.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
object Value {get; set;}
```

Python:

```python
algoInstanceParameter.Value: object
```

### Returns

`object` — 

### Examples

C#:

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

Python:

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

