Pine Script (TradingView)
Ceci est un exemple Pine Script TradingView pour cet indicateur. Collez-le dans l'editeur Pine TradingView, ajoutez-le au graphique, puis ajustez les parametres selon votre marche et votre unite de temps.
//@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)