---
id: "P:cAlgo.API.Internals.IAccount.StopOutLevel"
kind: "property"
type: "T:cAlgo.API.Internals.IAccount"
url: "https://help.ctrader.com/ctrader-algo/references/Account/IAccount/StopOutLevel/"
---

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

# IAccount.StopOutLevel

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

## StopOutLevel

Stop Out level is a lowest allowed Margin Level for account. If Margin Level is less than Stop Out, position will be closed sequentially until Margin Level is greater than Stop Out.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double StopOutLevel {get;}
```

Python:

```python
api.Account.StopOutLevel: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
if (Account.MarginLevel.HasValue && Account.MarginLevel.Value < Account.StopOutLevel * 2)
    Print("Margin level {0}% is close to the stop out level {1}%", Account.MarginLevel.Value, Account.StopOutLevel);
```

Python:

```python
if api.Account.MarginLevel is not None and api.Account.MarginLevel < api.Account.StopOutLevel * 2:
    api.Print(f"Margin level {api.Account.MarginLevel}% is close to the stop out level {api.Account.StopOutLevel}%")
```

