---
id: "M:cAlgo.API.ChartRobot.Stop"
kind: "method"
type: "T:cAlgo.API.ChartRobot"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Robots/ChartRobot/Stop/"
---

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

# ChartRobot.Stop

Member of [ChartRobot](https://help.ctrader.com/ctrader-algo/references/Chart/Robots/ChartRobot/index.md).

## Stop()

Stops the Robot instance.

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

- Cloud: Never available in the cloud: it is only returned by members that do not work there (ChartRobots, ChartRobots.Add, ChartRobots.Item and more).

C#:

```csharp
void Stop()
```

Python:

```python
chartRobot.Stop() -> None
```

### Examples

C#:

```csharp
foreach (var chartRobot in ChartRobots)
{
    if (chartRobot.State == RobotState.Running)
    {
        chartRobot.Stop();
        Print("Stop requested for {0}", chartRobot.Name);
    }
}
```

Python:

```python
for chartRobot in api.ChartRobots:
    if chartRobot.State == RobotState.Running:
        chartRobot.Stop()
        api.Print(f"Stop requested for {chartRobot.Name}")
```

