indicator · own pane · open source
Aroon Oscillator indicator
Aroon Oscillator is a free open-source indicator. Aroon Oscillator is Aroon Up Aroon Down, a single-line oscillator centred on zero. Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Aroon Oscillator does
Aroon Oscillator is Aroon Up - Aroon Down, a single-line oscillator centred on zero. Positive = uptrends have had more recent highs; negative = downtrends have had more recent lows.
- Crosses of zero are clean trend-shift signals.
- Magnitudes above 50 (in either direction) = strong and recent extremes.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Aroon Oscillator", overlay=false)
len = input.int(25, "Length", minval=2, maxval=200)
colorUp = input.color("color.green", "Color Up")
colorDown = input.color("color.red", "Color Down")
colorNeutral = input.color("color.gray", "Color Neutral")
ao = (100 * (len - ta.highestbars(high, len)) / len) - (100 * (len - ta.lowestbars(low, len)) / len)
hline(0, "Zero", color=colorNeutral, linestyle=hline.style_dashed)
p_Aroon_Osc = plot(ao, "Aroon Osc", color=ao >= 0 ? colorUp : colorDown, style=plot.style_columns, linewidth=2)
alertcondition(ta.crossover(ao, 0), "AO turns up", "Aroon Oscillator crossed above zero")
alertcondition(ta.crossunder(ao, 0), "AO turns down", "Aroon Oscillator crossed below zero")
No comments yet.
Sign in to comment.