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

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

# PendingOrder.AbsoluteTakeProfitProtections

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

## AbsoluteTakeProfitProtections

The absolute take profit protections of the order. Null if order has no take profit.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
AbsoluteTakeProfitProtections AbsoluteTakeProfitProtections {get;}
```

Python:

```python
pendingOrder.AbsoluteTakeProfitProtections: AbsoluteTakeProfitProtections
```

### Returns

`AbsoluteTakeProfitProtections` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var limitPrice = Symbol.Bid - 20 * Symbol.PipSize;
var takeProfits = new AbsoluteTakeProfitProtections(new AbsoluteTakeProfitProtection(10000, limitPrice + 20 * Symbol.PipSize), new AbsoluteTakeProfitLastProtection(limitPrice + 40 * Symbol.PipSize));
var result = PlaceLimitOrder(TradeType.Buy, SymbolName, 30000, limitPrice, "myLabel", new AbsoluteStopLossProtection(limitPrice - 20 * Symbol.PipSize), takeProfits);
if (result.IsSuccessful && result.PendingOrder.AbsoluteTakeProfitProtections != null)
    Print("Last take profit price: {0}", result.PendingOrder.AbsoluteTakeProfitProtections.LastTakeProfit.Price);
```

Python:

```python
limitPrice = api.Symbol.Bid - 20 * api.Symbol.PipSize
takeProfits = AbsoluteTakeProfitProtections(AbsoluteTakeProfitProtection(10000, limitPrice + 20 * api.Symbol.PipSize), AbsoluteTakeProfitLastProtection(limitPrice + 40 * api.Symbol.PipSize))
result = api.PlaceLimitOrder(TradeType.Buy, api.SymbolName, 30000, limitPrice, "myLabel", AbsoluteStopLossProtection(limitPrice - 20 * api.Symbol.PipSize), takeProfits)
if result.IsSuccessful and result.PendingOrder.AbsoluteTakeProfitProtections is not None:
    api.Print(f"Last take profit price: {result.PendingOrder.AbsoluteTakeProfitProtections.LastTakeProfit.Price}")
```

