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

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

# OptimizationDateOnlyParameter.Step

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

## Step

Gets the step of the range, as a time span.

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 TimeSpan Step {get;}
```

Python:

```python
optimizationDateOnlyParameter.Step: TimeSpan
```

### Returns

`TimeSpan` — 

Available since cAlgo.API 5.9.

### Examples

C#:

```csharp
var parameter = new OptimizationDateOnlyParameter("TradingStartDate", new DateOnly(2025, 1, 1), new DateOnly(2025, 3, 1), TimeSpan.FromDays(7));
Print("Range step: {0} days", parameter.Step.TotalDays);
```

Python:

```python
from System import DateOnly, TimeSpan
parameter = OptimizationDateOnlyParameter("TradingStartDate", DateOnly(2025, 1, 1), DateOnly(2025, 3, 1), TimeSpan.FromDays(7))
api.Print(f"Range step: {parameter.Step.TotalDays} days")
```

