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

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

# OptimizationDoubleParameter.Max

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

## Max

Gets the inclusive maximum of the range.

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
public double Max {get;}
```

Python:

```python
optimizationDoubleParameter.Max: float
```

### Returns

`double` — 

Available since cAlgo.API 5.9.

### Examples

C#:

```csharp
var parameter = new OptimizationDoubleParameter("TakeProfitPips", 10, 50, 5);
Print("Range maximum: {0}", parameter.Max);
```

Python:

```python
parameter = OptimizationDoubleParameter("TakeProfitPips", 10.0, 50.0, 5.0)
api.Print(f"Range maximum: {parameter.Max}")
```

