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

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

# ParameterAttribute.Group

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

## Group

Groups parameters in UI.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string Group {get; set;}
```

Python:

```python
parameterAttribute.Group: str
```

### Returns

`string` — 

### Examples

C#:

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

Python:

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

config.json:

```json
{
  "AccessRights": "None",
  "Parameters": [
    {
      "Name": "StopLossInPips",
      "DisplayName": "Stop Loss (Pips)",
      "Type": "Double",
      "DefaultValue": 20,
      "Group": "Protection"
    },
    {
      "Name": "TakeProfitInPips",
      "DisplayName": "Take Profit (Pips)",
      "Type": "Double",
      "DefaultValue": 40,
      "Group": "Protection"
    }
  ]
}
```

