Please help making chanes to the code......

#1
I have an indicator shown in the pic one......this indicator changes color with the respective movement whose Oversold and Overbought levels are -100/+100...........




Code:
_SECTION_BEGIN("Potential");
Plot(100,"",colorBlack,styleDashed);
Plot(-100,"",colorBlack,styleDashed);
n=18;
n= Param ( "Periods", 9, 1, 200, 1 );
ys1=(High+Low+Close*2)/4;
rk3=EMA(ys1,n);
rk4=StDev(ys1,n);
rk5=(ys1-rk3)*100/rk4;
rk6=EMA(rk5,n);
UP=EMA(rk6,n);
DOWN=EMA(up,n);
Oo=IIf(up<down,up,down);
Hh=Oo;
Ll=IIf(up<down,down,up);
Cc=Ll;
barcolor2=IIf(Ref(oo,-1)<Oo AND Cc<Ref(Cc,-1),colorBlue,IIf(up>down,colorGreen,colorRed));
PlotOHLC(Oo,hh,ll,Cc, "Potential" + Name(), barcolor2, ParamStyle ("Style") );
Plot(1,"ribbon",IIf(Ref(oo,-1)<Oo AND Cc<Ref(Cc,-1), colorBlue, IIf( up>down, colorLime,  IIf( down>up, colorRed, colorBlue ))),styleOwnScale|styleArea|styleNoLabel, -01, 50 );
_SECTION_END();
Please take a look at the 2nd screenshot.......its accu.dist indicator whose OS/OB levels are -200/+200......this indicator has a marking or indication with small hollow circles whenever the indicator enters Overbought/Oversold levels..........

Can anyone please help me insert the same feature for the first screenshot indicator aswell.........

 

Similar threads