Skip to content

Technical indicators

Aroon Oscillator

Aroon in one line.

The difference between Aroon Up and Aroon Down for the same window.

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.

Aroon Oscillator = Aroon Up − Aroon Down

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.

Aroon Oscillator drawn by its own code on example prices

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.

function onIntervalClose() {
if (aroonOscillator(25) > 50 && OPEN_POSITIONS_COUNT === 0) {
openPosition("BUY", { quantity: 10000, stopLossPips: 30 });
}
}