---
id: "T:cAlgo.API.OptimizationParameter`1"
kind: "record"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationParameter-API/"
---

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

# OptimizationParameter<T> (record)

Base type for a typed optimization parameter that carries a scalar value (used when the parameter is held fixed).

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

## Definition

```csharp
public abstract class OptimizationParameter<T> : OptimizationParameter
```

Available since cAlgo.API 5.9.

## Examples

C#:

```csharp
OptimizationParameter<int> parameter = new OptimizationIntegerParameter("FastPeriods", 9);
Print("{0} fixed value: {1}", parameter.Name, parameter.Value);
```

Python:

```python
# Not available in Python: generic type arguments, use the concrete parameter types
parameter = OptimizationIntegerParameter("FastPeriods", 9)
api.Print(f"{parameter.Name} fixed value: {parameter.Value}")
```

## Properties

- `public T Value {get;}` — Gets the scalar value used when the parameter is held fixed. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationParameter-API/Value/index.md)

## Inherited members

- `public string Name {get;}` (from OptimizationParameter) [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationParameter/Name/index.md)
- `public bool IsOptimized {get;}` (from OptimizationParameter) [details](https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationParameter/IsOptimized/index.md)

