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

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

# Envelopes.Upper

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

## Upper

The upper line of the Envelopes.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries Upper {get;}
```

Python:

```python
envelopes.Upper: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var envelopes = Indicators.Envelopes(Bars.ClosePrices, 20, MovingAverageType.Simple, 0.1);
if (Bars.HighPrices.Last(1) >= envelopes.Upper.Last(1))
    Print("Price reached the upper envelope: {0}", envelopes.Upper.Last(1));
```

Python:

```python
envelopes = api.Indicators.Envelopes(api.Bars.ClosePrices, 20, MovingAverageType.Simple, 0.1)
if api.Bars.HighPrices.Last(1) >= envelopes.Upper.Last(1):
    api.Print(f"Price reached the upper envelope: {envelopes.Upper.Last(1)}")
```

