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

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

# AbsoluteTakeProfitProtections.FourthTakeProfit

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

## FourthTakeProfit

Gets the fourth partial take profit, if any.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public AbsoluteTakeProfitProtection FourthTakeProfit {get;}
```

Python:

```python
absoluteTakeProfitProtections.FourthTakeProfit: AbsoluteTakeProfitProtection
```

### Returns

`AbsoluteTakeProfitProtection` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var position = Positions.Find("myLabel");
var fourthTakeProfit = position?.AbsoluteTakeProfitProtections?.FourthTakeProfit;
if (fourthTakeProfit != null)
    Print("Fourth take profit: {0} units at {1}", fourthTakeProfit.Volume, fourthTakeProfit.Price);
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None and position.AbsoluteTakeProfitProtections is not None and position.AbsoluteTakeProfitProtections.FourthTakeProfit is not None:
    fourthTakeProfit = position.AbsoluteTakeProfitProtections.FourthTakeProfit
    api.Print(f"Fourth take profit: {fourthTakeProfit.Volume} units at {fourthTakeProfit.Price}")
```

