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

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

# RelativeTakeProfitLastProtection.Distance

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

## Distance

The take profit distance, in pips, from the order's entry price.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public double Distance {get; set;}
```

Python:

```python
relativeTakeProfitLastProtection.Distance: float
```

### Returns

`double` — 

Available since cAlgo.API 5.8.

