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

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

# ParameterAttribute.DefaultValue

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

## DefaultValue

Gets or sets the default value of this Parameter property.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public object DefaultValue {get; set;}
```

Python:

```python
parameterAttribute.DefaultValue: object
```

### Returns

`object` — 

### Examples

C#:

```csharp
public partial class ParameterSample : Robot
{
    protected override void OnStart()
    {
        Print("Periods: {0}, Label: {1}", Periods, Label);
    }
}
```

Python:

```python
def on_start(self):
    api.Print(f"Periods: {api.Periods}, Label: {api.Label}")
```

config.json:

```json
{
  "AccessRights": "None",
  "Parameters": [
    {
      "Name": "Periods",
      "Type": "Integer",
      "DefaultValue": 14
    },
    {
      "Name": "Label",
      "Type": "String",
      "DefaultValue": "myLabel"
    }
  ]
}
```

