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

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

# Position.AbsoluteTakeProfitProtections

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

## AbsoluteTakeProfitProtections

The take profit protections of the position. Null if position has no take profit.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
position.AbsoluteTakeProfitProtections: AbsoluteTakeProfitProtections
```

### Returns

`AbsoluteTakeProfitProtections` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var takeProfits = new RelativeTakeProfitProtections(new RelativeTakeProfitProtection(10000, 20), new RelativeTakeProfitLastProtection(40));
var result = ExecuteMarketOrder(TradeType.Buy, SymbolName, 30000, "myLabel", new RelativeStopLossProtection(20), takeProfits);
if (result.IsSuccessful && result.Position.AbsoluteTakeProfitProtections != null)
    Print("Last take profit price: {0}", result.Position.AbsoluteTakeProfitProtections.LastTakeProfit.Price);
```

Python:

```python
takeProfits = RelativeTakeProfitProtections(RelativeTakeProfitProtection(10000, 20), RelativeTakeProfitLastProtection(40))
result = api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, 30000, "myLabel", RelativeStopLossProtection(20), takeProfits)
if result.IsSuccessful and result.Position.AbsoluteTakeProfitProtections is not None:
    api.Print(f"Last take profit price: {result.Position.AbsoluteTakeProfitProtections.LastTakeProfit.Price}")
```

