Pine Script (TradingView)
Este e um exemplo de Pine Script do TradingView para este indicador. Cole no Pine Editor do TradingView, adicione ao grafico e ajuste os parametros para seu mercado e 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)