IIndicatorsAccessor.Aroon
method · IIndicatorsAccessor · cAlgo.API.Internals
DesktopCLICloud
The Aroon indicator is used to identify trends and their reversals.
Overloads
Aroon(int periods)
The Aroon indicator is used to identify trends and their reversals.
Aroon Aroon(int periods)
api.Indicators.Aroon(periods: int) -> Aroon
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
periods | int | int | The value of the periods used for calculation. |
Returns Aroon — Aroon indicator instance
Examples
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);
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.
Aroon Aroon(Bars bars, int periods)
api.Indicators.Aroon(bars: Bars, periods: int) -> Aroon
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
bars | Bars | Bars | The Bars that will be used by indicator, you can pass another timeframe/symbol bars |
periods | int | int | The value of the periods used for calculation. |
Returns Aroon — Aroon indicator instance
Examples
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);
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}")