ChartRobotAddedEventArgs
class cAlgo.API
DesktopCLICloud
The class representing AddedEventArgs for a ChartRobot.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (ChartRobots.RobotAdded).
Definition
public class ChartRobotAddedEventArgs : ChartRobotEventArgs
Namespace: cAlgo.API · Group: EventArgs · Inherits: ChartRobotEventArgs
Examples
protected override void OnStart()
{
Chart.Robots.RobotAdded += OnChartRobotAdded;
}
private void OnChartRobotAdded(ChartRobotAddedEventArgs args)
{
Print("cBot {0} added to the chart, instance: {1}", args.Robot.Name, args.Robot.InstanceId);
}
def on_start(self):
api.Chart.Robots.RobotAdded += self.on_chart_robot_added
def on_chart_robot_added(self, args):
api.Print(f"cBot {args.Robot.Name} added to the chart, instance: {args.Robot.InstanceId}")
Inherited members
From ChartRobotEventArgs: Robot