---
id: "T:cAlgo.API.ChartRobotStoppedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartRobotStoppedEventArgs/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartRobotStoppedEventArgs (class)

The class representing `StoppedEventArgs` for a `ChartRobot`.

Environments: Desktop supported · CLI supported · Cloud not supported.

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

## Definition

```csharp
public class ChartRobotStoppedEventArgs : ChartRobotEventArgs
```

## Examples

C#:

```csharp
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);
}
```

Python:

```python
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

- `public ChartRobot Robot {get;}` (from ChartRobotEventArgs) [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartRobotEventArgs/Robot/index.md)

