Skip to content

ChartRobotStoppedEventArgs

class cAlgo.API

DesktopCLICloud

The class representing StoppedEventArgs for a ChartRobot.

Environment behaviour

Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (ChartRobots.RobotStopped).

Definition

public class ChartRobotStoppedEventArgs : ChartRobotEventArgs

Namespace: cAlgo.API · Group: EventArgs · Inherits: ChartRobotEventArgs

Examples

protected override void OnStart()
{
    Chart.Robots.RobotStopped += OnChartRobotStopped;
}

private void OnChartRobotStopped(ChartRobotStoppedEventArgs args)
{
    Print("cBot {0} stopped, state: {1}", args.Robot.Name, args.Robot.State);
}
def on_start(self):
    api.Chart.Robots.RobotStopped += self.on_chart_robot_stopped

def on_chart_robot_stopped(self, args):
    api.Print(f"cBot {args.Robot.Name} stopped, state: {args.Robot.State}")

Inherited members

From ChartRobotEventArgs: Robot

See also