Type : Indicator, Name : Aroon
input:thold(20),length(25);
var:hiref(0),loref(0);
hiref=100*((length-nthhighestbar(1,h,length))/length);
loref=100*((length-nthlowestbar(1,l,length))/length);
plot1(hiref,»hi»);
plot2(loref,»lo»);
plot3(50+thold,»hiref»);
plot4(50-thold,»loref»);