Aroon Oscillator for the Aroon indicator. This creates an oscillator out of the upper and lower aroon plots.
Kommentera:
Don't forget to change the colors
study(title="Aroon Oscillator", shorttitle="Aroon Oscillator", overlay=false) length = input(14, minval=1) upper = 100 * (highestbars(high, length+1) + length)/length lower = 100 * (lowestbars(low, length+1) + length)/length midp = 0 oscillator = upper - lower osc = plot(oscillator, color=red) mp = plot(midp) top = plot(80) bottom = plot(-80) fill(osc, mp) fill(top,bottom)