---
id: "M:cAlgo.API.RobotStartDialog.#ctor(cAlgo.API.RobotType)"
kind: "constructor"
type: "T:cAlgo.API.RobotStartDialog"
url: "https://help.ctrader.com/ctrader-algo/references/Dialogs/RobotStartDialog/Constructor/"
---

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

# RobotStartDialog constructor

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

## RobotStartDialog(RobotType robotType)

Creates an RobotStartDialog.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: No dialog can be shown in the CLI: ShowDialog returns without showing anything.
- Cloud: No dialog can be shown in the cloud: ShowDialog returns without showing anything.

C#:

```csharp
public RobotStartDialog(RobotType robotType)
```

Python:

```python
RobotStartDialog(robotType: RobotType)
```

### Parameters

- `robotType` (`RobotType`, Python `RobotType`):

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
if (AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot) is RobotType robotType)
{
    var robotStartDialog = new RobotStartDialog(robotType);
    robotStartDialog.ShowDialog();
}
```

Python:

```python
algoType = api.AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot)
if algoType is not None:
    robotStartDialog = RobotStartDialog(RobotType(algoType))
    robotStartDialog.ShowDialog()
```

