---
id: "M:cAlgo.API.Internals.IIndicatorsAccessor.Aroon(System.Int32)"
kind: "method"
type: "T:cAlgo.API.Internals.IIndicatorsAccessor"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/Aroon/"
---

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

# IIndicatorsAccessor.Aroon

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

## Aroon(int periods)

The Aroon indicator is used to identify trends and their reversals.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
Aroon Aroon(int periods)
```

Python:

```python
api.Indicators.Aroon(periods: int) -> Aroon
```

### Parameters

- `periods` (`int`, Python `int`): The value of the periods used for calculation.

### Returns

`Aroon` — Aroon indicator instance

### Examples

C#:

```csharp
var aroon = Indicators.Aroon(25);
if (aroon.Up.LastValue > aroon.Down.LastValue)
    Print("Aroon Up {0} is above Aroon Down {1}", aroon.Up.LastValue, aroon.Down.LastValue);
```

Python:

```python
aroon = api.Indicators.Aroon(25)
if aroon.Up.LastValue > aroon.Down.LastValue:
    api.Print(f"Aroon Up {aroon.Up.LastValue} is above Aroon Down {aroon.Down.LastValue}")
```

## Aroon(Bars bars, int periods)

The Aroon indicator is used to identify trends and their reversals.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
Aroon Aroon(Bars bars, int periods)
```

Python:

```python
api.Indicators.Aroon(bars: Bars, periods: int) -> Aroon
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars
- `periods` (`int`, Python `int`): The value of the periods used for calculation.

### Returns

`Aroon` — Aroon indicator instance

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyAroon = Indicators.Aroon(dailyBars, 25);
Print("Daily Aroon Up: {0}, Down: {1}", dailyAroon.Up.LastValue, dailyAroon.Down.LastValue);
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyAroon = api.Indicators.Aroon(dailyBars, 25)
api.Print(f"Daily Aroon Up: {dailyAroon.Up.LastValue}, Down: {dailyAroon.Down.LastValue}")
```

