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

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

# OptimizationIntegerParameter.Step

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

## Step

Gets the step 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 int Step {get;}
```

Python:

```python
optimizationIntegerParameter.Step: int
```

### Returns

`int` — 

Available since cAlgo.API 5.9.

### Examples

C#:

```csharp
var parameter = new OptimizationIntegerParameter("SlowPeriods", 20, 100, 10);
Print("Passes for this parameter: {0}", (parameter.Max - parameter.Min) / parameter.Step + 1);
```

Python:

```python
parameter = OptimizationIntegerParameter("SlowPeriods", 20, 100, 10)
api.Print(f"Passes for this parameter: {int((parameter.Max - parameter.Min) / parameter.Step) + 1}")
```

