---
id: "T:cAlgo.API.RobotStartDialog"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Dialogs/RobotStartDialog/"
---

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

# RobotStartDialog (class)

Represents a common dialog box that allows a user to start a cBot.

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.

## Definition

```csharp
public class RobotStartDialog
```

Available since cAlgo.API 5.1.

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo.Robots;

public partial class TestExample : Robot
{
    protected override void OnStart()
    {
        var robotType = (RobotType)AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot);

        var robotStartDialog = new RobotStartDialog(robotType);

        robotStartDialog.ShowDialog();
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *
# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        robotType = RobotType(api.AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot))
        robotStartDialog = RobotStartDialog(robotType)
        robotStartDialog.ShowDialog()
```

config.json:

```json
{
  "AccessRights": "None"
}
```

## Constructors

- `public RobotStartDialog(RobotType robotType)` — Creates an RobotStartDialog. [details](https://help.ctrader.com/ctrader-algo/references/Dialogs/RobotStartDialog/Constructor/index.md)

## Methods

- `public void ShowDialog()` — Shows the dialog. [details](https://help.ctrader.com/ctrader-algo/references/Dialogs/RobotStartDialog/ShowDialog/index.md)

## Properties

- `public RobotType RobotType {get; set;}` — Gets or sets the Robot Type. [details](https://help.ctrader.com/ctrader-algo/references/Dialogs/RobotStartDialog/RobotType/index.md)

