---
id: "P:cAlgo.API.PendingOrder.StopLoss"
kind: "property"
type: "T:cAlgo.API.PendingOrder"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/Orders/PendingOrder/StopLoss/"
---

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

# PendingOrder.StopLoss

Member of [PendingOrder](https://help.ctrader.com/ctrader-algo/references/Trading/Orders/PendingOrder/index.md).

## StopLoss

The order stop loss in price

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double? StopLoss {get;}
```

Python:

```python
pendingOrder.StopLoss: float | None
```

### Returns

`double?` — 

### Examples

C#:

```csharp
var result = PlaceLimitOrder(TradeType.Buy, SymbolName, 10000, Symbol.Bid - 20 * Symbol.PipSize, "myLabel", 20, 40, ProtectionType.Relative);
if (result.IsSuccessful)
    Print("Order stop loss price: {0}", result.PendingOrder.StopLoss);
```

Python:

```python
result = api.PlaceLimitOrder(TradeType.Buy, api.SymbolName, 10000, api.Symbol.Bid - 20 * api.Symbol.PipSize, "myLabel", 20, 40, ProtectionType.Relative)
if result.IsSuccessful:
    api.Print(f"Order stop loss price: {result.PendingOrder.StopLoss}")
```

