Skip to content

ChartRobot.Type

property · ChartRobot · cAlgo.API

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 (ChartRobots, ChartRobots.Add, ChartRobots.Item and more).

Definition

RobotType Type {get;}
chartRobot.Type: RobotType

Returns RobotType

Examples

foreach (var chartRobot in ChartRobots)
    Print("{0} | Type: {1} | Parameters: {2}", chartRobot.Name, chartRobot.Type.Name, chartRobot.Type.Parameters.Count);
for chartRobot in api.ChartRobots:
    api.Print(f"{chartRobot.Name} | Type: {chartRobot.Type.Name} | Parameters: {chartRobot.Type.Parameters.Count}")