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

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

# PendingOrder.StopLossBreakEven

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

## StopLossBreakEven

The stop loss break even of the order.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
StopLossBreakEven StopLossBreakEven {get;}
```

Python:

```python
pendingOrder.StopLossBreakEven: StopLossBreakEven
```

### Returns

`StopLossBreakEven` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var takeProfits = new RelativeTakeProfitProtections(new RelativeTakeProfitLastProtection(40));
var result = PlaceLimitOrder(TradeType.Buy, SymbolName, 10000, Symbol.Bid - 20 * Symbol.PipSize, "myLabel", new RelativeStopLossProtection(20), takeProfits, new StopLossBreakEven(15, 2));
if (result.IsSuccessful && result.PendingOrder.StopLossBreakEven != null)
    Print("Break-even trigger distance: {0} pips", result.PendingOrder.StopLossBreakEven.TriggerDistance);
```

Python:

```python
takeProfits = RelativeTakeProfitProtections(RelativeTakeProfitLastProtection(40))
result = api.PlaceLimitOrder(TradeType.Buy, api.SymbolName, 10000, api.Symbol.Bid - 20 * api.Symbol.PipSize, "myLabel", RelativeStopLossProtection(20), takeProfits, StopLossBreakEven(15, 2))
if result.IsSuccessful and result.PendingOrder.StopLossBreakEven is not None:
    api.Print(f"Break-even trigger distance: {result.PendingOrder.StopLossBreakEven.TriggerDistance} pips")
```

