Aroon Oscillator
Aroon in one line.
What it measures
Section titled “What it measures”The difference between Aroon Up and Aroon Down for the same window.
How traders read it
Section titled “How traders read it”Above zero, recent highs are fresher than recent lows; below zero the reverse. Values near ±100 read as a strong trend, values near zero as no clear trend.
Formula
Section titled “Formula”Aroon Oscillator = Aroon Up − Aroon DownSettings and output
Section titled “Settings and output”Call: aroonOscillator(periods)
| Setting | Chart default |
|---|---|
periods: Periods |
25 |
What you get: a number.
Warm-up: with aroonOscillator(25), it asks for 26 bars of history and a run-up of 1, and its first value came on bar 27 of the example data.
The prices are made up, hourly, and the same on every page, so the chart shows how the indicator behaves, not how a market behaved.
In an algorithm
Section titled “In an algorithm”function onIntervalClose() { if (aroonOscillator(25) > 50 && OPEN_POSITIONS_COUNT === 0) { openPosition("BUY", { quantity: 10000, stopLossPips: 30 }); }}