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