RobotStartDialog
class cAlgo.API Since 5.1
DesktopCLICloud
Represents a common dialog box that allows a user to start a cBot.
Environment behaviour
CLI — not supported. No dialog can be shown in the CLI: ShowDialog returns without showing anything.
Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns without showing anything.
Definition
public class RobotStartDialog
Namespace: cAlgo.API · Group: Dialogs
Examples
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();
}
}
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()
{
"AccessRights": "None"
}
Constructors
| Name | Description |
|---|---|
| RobotStartDialogDesktopCLICloud | Creates an RobotStartDialog. |
Methods
| Name | Description |
|---|---|
ShowDialogDesktopCLICloudvoid | Shows the dialog. |
Properties
| Name | Description |
|---|---|
RobotTypeDesktopCLICloudRobotType | Gets or sets the Robot Type. |