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

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

# Supertrend.UpTrend

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

## UpTrend

Gets the Supertrend Up trend data series

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
supertrend.UpTrend: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var supertrend = Indicators.Supertrend(10, 3);
if (!double.IsNaN(supertrend.UpTrend.Last(1)))
    Print("Up trend, Supertrend support at {0}", supertrend.UpTrend.Last(1));
```

Python:

```python
import math

supertrend = api.Indicators.Supertrend(10, 3)
if not math.isnan(supertrend.UpTrend.Last(1)):
    api.Print(f"Up trend, Supertrend support at {supertrend.UpTrend.Last(1)}")
```

