Open-source scriptindicator/v1
Aroon Oscillator
Subtract Aroon Down from Aroon Up to show directional recency on one centered line.
#aroon#oscillator#trend
Description
The Aroon Oscillator condenses the two Aroon lines into a single value from -100 to 100. Positive readings mean the window high is more recent than the window low, while negative readings mean the low is more recent.
Open-source script. Everyone can inspect the source code, use the script on a chart, and save an editable copy.
Release notes
Version history · 1 published version
Version 1CurrentChart updatedAroon Oscillator · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Aroon Oscillator", { overlay: false });
const length = input.int("Length", 25, { min: 2, max: 500 });
const highOffset = highestbars(high, length);
const lowOffset = lowestbars(low, length);
const line = highOffset.map((v, i) => 100 * (v - lowOffset[i]) / length);
plot(line, { title: "Aroon Oscillator", color: "#7c4dff", lineWidth: 2 });
hline(50, { title: "Upper", color: "#26a69a", style: "dashed" });
hline(0, { title: "Zero", color: "#78909c", style: "dotted" });
hline(-50, { title: "Lower", color: "#ef5350", style: "dashed" });
Community discussion
0 comments
No comments yet. Start the discussion.