Skip to content

ChartTemplateRobot.Type

property · ChartTemplateRobot · cAlgo.API Since 5.6

DesktopCLICloud

Gets the RobotType of a Robot instance.

Environment behaviour

Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplateRobots, ChartTemplateRobots.Add, ChartTemplateRobots.Get).

Definition

RobotType Type {get;}
chartTemplateRobot.Type: RobotType

Returns RobotType

Examples

var template = ChartTemplates.Get("My Template");
if (template != null)
{
    foreach (var robot in template.Robots)
        Print("cBot type: {0} | Parameters: {1}", robot.Type.Name, robot.Type.Parameters.Count);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
    for robot in template.Robots:
        api.Print(f"cBot type: {robot.Type.Name} | Parameters: {robot.Type.Parameters.Count}")