Pine Script (TradingView)
This is a TradingView Pine Script example for this indicator. Paste it into the TradingView Pine Editor, add it to your chart, and adjust inputs for your market and timeframe.
//@version=6
indicator("Aroon Indicator", overlay=false)
length = input.int(14, "Aroon Length")
aroonUp = (ta.highestbars(high, length + 1) + length) / length * 100
aroonDn = (ta.lowestbars(low, length + 1) + length) / length * 100
longSignal = ta.crossover(aroonUp, aroonDn)
shortSignal = ta.crossunder(aroonUp, aroonDn)
plotshape(longSignal, style=shape.triangleup, location=location.bottom, color=color.green, size=size.small)
plotshape(shortSignal, style=shape.triangledown, location=location.top, color=color.red, size=size.small)
hline(70, "Strong", color=color.orange, linestyle=hline.style_dashed)
hline(30, "Weak", color=color.orange, linestyle=hline.style_dashed)
plot(aroonUp, "Aroon Up", color=color.green)
plot(aroonDn, "Aroon Down", color=color.red)