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

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

# HistoricalOrder.TakeProfitPips

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

## TakeProfitPips

Order take profit in Pips.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double? TakeProfitPips {get;}
```

Python:

```python
historicalOrder.TakeProfitPips: float | None
```

### Returns

`double?` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var order = HistoricalOrders.FindLast("myLabel");
if (order != null)
    Print("Order take profit pips: {0}", order.TakeProfitPips);
```

Python:

```python
order = api.HistoricalOrders.FindLast("myLabel")
if order is not None:
    api.Print(f"Order take profit pips: {order.TakeProfitPips}")
```

