---
id: "P:cAlgo.API.OptimizationPass.ParameterValues"
kind: "property"
type: "T:cAlgo.API.OptimizationPass"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationPass/ParameterValues/"
---

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

# OptimizationPass.ParameterValues

Member of [OptimizationPass](https://help.ctrader.com/ctrader-algo/references/Plugin/Optimization/OptimizationPass/index.md).

## ParameterValues

Gets the exact parameter values this pass used, keyed by parameter name.

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.

C#:

```csharp
IReadOnlyDictionary<string, string> ParameterValues {get;}
```

Python:

```python
optimizationPass.ParameterValues: dict[str, str]
```

### Returns

`IReadOnlyDictionary<string, string>` — 

Available since cAlgo.API 5.9.

### Examples

C#:

```csharp
Optimization.PassCompleted += args =>
{
    foreach (var parameter in args.Pass.ParameterValues)
        Print("Pass {0}: {1} = {2}", args.Pass.Id, parameter.Key, parameter.Value);
};
```

Python:

```python
def on_start(self):
    api.Optimization.PassCompleted += self.on_pass_completed

def on_pass_completed(self, args):
    for parameter in args.Pass.ParameterValues:
        api.Print(f"Pass {args.Pass.Id}: {parameter.Key} = {parameter.Value}")
```

