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

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

# RelativeTakeProfitProtections.SecondTakeProfit

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

## SecondTakeProfit

Gets the second partial take profit, if any.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
relativeTakeProfitProtections.SecondTakeProfit: RelativeTakeProfitProtection
```

### Returns

`RelativeTakeProfitProtection` — 

Available since cAlgo.API 5.8.

### Examples

C#:

```csharp
var takeProfits = new RelativeTakeProfitProtections(new RelativeTakeProfitProtection(10000, 20), new RelativeTakeProfitProtection(10000, 30), new RelativeTakeProfitLastProtection(45));
if (takeProfits.SecondTakeProfit != null)
    Print("Second take profit at {0} pips", takeProfits.SecondTakeProfit.Distance);
```

Python:

```python
takeProfits = RelativeTakeProfitProtections(RelativeTakeProfitProtection(10000, 20), RelativeTakeProfitProtection(10000, 30), RelativeTakeProfitLastProtection(45))
if takeProfits.SecondTakeProfit is not None:
    api.Print(f"Second take profit at {takeProfits.SecondTakeProfit.Distance} pips")
```

