Open-source scriptindicator/v1
Aroon Indicator
Track how recently the highest high and lowest low occurred within a rolling window.
#aroon#oscillator#trend
Description
Aroon Up and Aroon Down measure the recency of the window high and low on a zero-to-100 scale. Their relative position can help describe trend direction, while both lines at lower levels can indicate a market without a recent directional extreme.
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 Indicator · Aug 31, 2026
Source codempl-2.0View sourceHide source
indicator("Aroon Indicator", { overlay: false });
const length = input.int("Length", 25, { min: 2, max: 500 });
const highOffset = highestbars(high, length);
const lowOffset = lowestbars(low, length);
const up = highOffset.map((v) => 100 * (length + v) / length);
const down = lowOffset.map((v) => 100 * (length + v) / length);
plot(up, { title: "Aroon Up", color: "#26a69a", lineWidth: 2 });
plot(down, { title: "Aroon Down", color: "#ef5350", lineWidth: 2 });
hline(70, { title: "Upper", color: "#78909c", style: "dashed" });
hline(30, { title: "Lower", color: "#78909c", style: "dashed" });
Community discussion
0 comments
No comments yet. Start the discussion.