---
id: "P:cAlgo.API.Indicators.DonchianChannel.Top"
kind: "property"
type: "T:cAlgo.API.Indicators.DonchianChannel"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/DonchianChannel/Top/"
---

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

# DonchianChannel.Top

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

## Top

Gets or sets the highest high of the period.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries Top {get; set;}
```

Python:

```python
donchianChannel.Top: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var donchian = Indicators.DonchianChannel(20);
if (Bars.ClosePrices.Last(1) > donchian.Top.Last(2))
    Print("Breakout above the channel Top: {0}", donchian.Top.Last(2));
```

Python:

```python
donchian = api.Indicators.DonchianChannel(20)
if api.Bars.ClosePrices.Last(1) > donchian.Top.Last(2):
    api.Print(f"Breakout above the channel Top: {donchian.Top.Last(2)}")
```

