Skip to content

ParameterAttribute.Group

property · ParameterAttribute · cAlgo.API

DesktopCLICloud

Groups parameters in UI.

Definition

public string Group {get; set;}
parameterAttribute.Group: str

Returns string

Examples

public partial class ParameterSample : Robot
{
    protected override void OnStart()
    {
        ExecuteMarketOrder(TradeType.Buy, SymbolName, 10000, "myLabel", StopLossInPips, TakeProfitInPips);
    }
}
def on_start(self):
    api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, 10000, "myLabel", api.StopLossInPips, api.TakeProfitInPips)
{
  "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"
    }
  ]
}