Aroon

How recently the highest high and lowest low occurred, to spot new trends.

Aroon over a window of period + 1 candles that INCLUDES the current candle: up = 100 × (period − candles since the highest high) ÷ period, down = the same with the lowest low (ties count the most recent extreme); oscillator = up − down. Ready at period + 1 candles. Mirror: up and down swap (the comparison keeps its direction); the oscillator changes sign.

Settings

SettingDefaultRangeWhat it does
period251 to 1000Look-back candles.

What it gives

OutputWhat it is
Aroon UpAroon up, 0–100.
Aroon DownAroon down, 0–100.
Oscillatorup − down, −100…100.

What it reads

It reads the whole candle (open, high, low, close and volume).

Warm-up

With its default settings, Aroon needs 26 closed candles before its first value. A backtest loads them before its start date, so the first trade can already use it.

Test it

Copy this sentence into the Algonney chat to backtest it:

Backtest a strategy on BTC that uses Aroon with its default settings