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