Code Amibroker Indicators
Unbounded Stochastic Momentum Index for Amibroker
the Unbounded SMI values are allowed to go outside the -100 to 100 boundaries imposed by the standard SMI indicator. Periods=Param(\”Periods\”,15,2,100);Smooth1=Param(\”Smooth1\”,3,1,100);Smooth2=Param(\”Smooth2\”,3,1,100);HH=HHV(Ref(H,-1),Periods);LL=LLV(Ref(L,-1),Periods);StoMom=100*EMA(EMA(C-0.5*(HH+LL),Smooth1),Smooth2)/(0.5*EMA(EMA(HH-LL,Smooth1),Smooth2));Plot(StoMom,_DEFAULT_NAME(),ParamColor(\”Color\”,ColorCycle));PlotGrid(80,colorRed);PlotGrid(0,colorLightGrey);PlotGrid(-80,colorLightGrey);