Join our facebook group for Amibroker afl code discussion https://www.facebook.com/groups/603980776889348

The Modified Way Of Overbought Oversold



The Modified Way Of Overbought Oversold
The Modified Way Of Overbought Oversold


//www.aflcode.com
_SECTION_BEGIN("NPO");
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));


n=Param("period",60,5,100,1);


np = (C - MA(C,n))/StDev(C,n); 
npo=(np+(2*Ref(np,-1))+(2*Ref(np,-2))+Ref(np,-3))/6;

Plot(npo,"Normalized Price",colorWhite,1);
PlotGrid(2,colorRed);
PlotGrid(3,colorYellow);
PlotGrid(-2,colorRed);
PlotGrid(-3,colorYellow);



graphx=10;
PlotGrid(1,colorPink);
PlotGrid(-1,colorPink);
PlotOHLC( npo,npo,1,-1, "", IIf( npo> 1, colorLime ,colorRed), styleCloud | styleClipMinMax, -1, 1); 

Previous
Next Post »