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

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

# Fractals.UpFractal

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

## UpFractal

The up fractals plot/output

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
fractals.UpFractal: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var fractals = Indicators.Fractals(5);
for (var barsAgo = 1; barsAgo <= 20; barsAgo++)
{
    if (!double.IsNaN(fractals.UpFractal.Last(barsAgo)))
    {
        Print("Latest up fractal {0} bars ago at {1}", barsAgo, fractals.UpFractal.Last(barsAgo));
        break;
    }
}
```

Python:

```python
import math

fractals = api.Indicators.Fractals(5)
for barsAgo in range(1, 21):
    if not math.isnan(fractals.UpFractal.Last(barsAgo)):
        api.Print(f"Latest up fractal {barsAgo} bars ago at {fractals.UpFractal.Last(barsAgo)}")
        break
```

