← Script Marketplace
Open-source scriptindicator/v1

Aroon Oscillator

by Kodexius·@kodexius·

Subtract Aroon Down from Aroon Up to show directional recency on one centered line.

#aroon#oscillator#trend
Aroon Oscillator chart preview

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
Release notes

Initial classic indicator release.

View current source ↓
Source codempl-2.0View 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

Loading…

No comments yet. Start the discussion.