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

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

# RelativeTakeProfitProtections.FourthTakeProfit

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

## FourthTakeProfit

Gets the fourth partial take profit, if any.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
relativeTakeProfitProtections.FourthTakeProfit: RelativeTakeProfitProtection
```

### Returns

`RelativeTakeProfitProtection` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var ladder = new RelativeTakeProfitProtections(new RelativeTakeProfitProtection(10000, 10), new RelativeTakeProfitProtection(10000, 20), new RelativeTakeProfitProtection(10000, 30), new RelativeTakeProfitProtection(10000, 40), new RelativeTakeProfitLastProtection(60));
Print("Fourth take profit: {0} units at {1} pips", ladder.FourthTakeProfit.Volume, ladder.FourthTakeProfit.Distance);
```

Python:

```python
ladder = RelativeTakeProfitProtections(RelativeTakeProfitProtection(10000, 10), RelativeTakeProfitProtection(10000, 20), RelativeTakeProfitProtection(10000, 30), RelativeTakeProfitProtection(10000, 40), RelativeTakeProfitLastProtection(60))
api.Print(f"Fourth take profit: {ladder.FourthTakeProfit.Volume} units at {ladder.FourthTakeProfit.Distance} pips")
```

