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

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

# ParameterAttribute.Step

Member of [ParameterAttribute](https://help.ctrader.com/ctrader-algo/references/Attributes/ParameterAttribute/index.md).

## Step

Gets or sets the step of this Parameter. Step is used in NumericUpDown controls in parameter editors.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public double Step {get; set;}
```

Python:

```python
parameterAttribute.Step: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
public partial class ParameterSample : Robot
{
    protected override void OnStart()
    {
        ExecuteMarketOrder(TradeType.Buy, SymbolName, 10000, "myLabel", StopLossInPips, StopLossInPips * 2);
    }
}
```

Python:

```python
def on_start(self):
    api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, 10000, "myLabel", api.StopLossInPips, api.StopLossInPips * 2)
```

config.json:

```json
{
  "AccessRights": "None",
  "Parameters": [
    {
      "Name": "StopLossInPips",
      "DisplayName": "Stop Loss (Pips)",
      "Type": "Double",
      "DefaultValue": 20,
      "MinValue": 5,
      "MaxValue": 100,
      "Step": 5
    }
  ]
}
```

