Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi FormulaPrimer
The Stochastic Momentum Index (SMI) swings between 100 and -100, so what's the full name of the indicator you're looking for? For what it's worth here's the code for the only SMI indicator that I'm aware of.
{Stochastic Momentum Index}
{User settings} N:=Input("Stochastic Momentum Index, Periods",1,99,8); K1:=Input("Smoothing Periods",1,99,5); K2:=Input("Double Smoothing Periods" ,1,99,3); R:=Input("%D Smoothing, 0=E 1=S" ,0,1,0); K3:=Input("%D Periods",1,99,3);
{Stochastic Momentum Index - double smoothed} B:=HHV(H,N); Y:=LLV(L,N); I:=Cum(1); D:=C-0.5*(B+Y); F:=B-Y; G:=Mov(D,K1,E); G:=Mov(G,K2,E); M:=Mov(F,K1,E); M:=Mov(M,K2,E); PcK:=200*G/M;
{%D Smoothing} PcD:=If(R=0,Mov(PcK,K3,E),Mov(PcK,K3,S));
{Outputs} PcD; PcK;
Roy
|