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