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

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

# Robot.Stop

Member of [Robot](https://help.ctrader.com/ctrader-algo/references/General/Robot/index.md).

## Stop()

Stops the cBot. cBot will be completely stopped and will not send/receive any signals.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public void Stop()
```

Python:

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

### Examples

C#:

```csharp
if (Account.Balance < 1000)
{
    Print("Balance is below 1000, stopping the cBot");
    Stop();
}
```

Python:

```python
if api.Account.Balance < 1000:
    api.Print("Balance is below 1000, stopping the cBot")
    api.Stop()
```

