logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
FormulaPrimer  
#1 Posted : Tuesday, May 13, 2014 6:25:31 PM(UTC)
FormulaPrimer

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 8/12/2005(UTC)
Posts: 73

Today's SMI reading = yesterday's SMI – opening gain or loss + closing gain or loss)

For example, the SMI closed yesterday at 10000. During open today's trading, the DJIA has gained a total of 100 points. During the close, the DJIA has lost 80 points. So, today's SMI is 10000 – 100 + -80 = 9820.


What is the simplest way to make this indicator ?

Thanks.


mstt  
#2 Posted : Wednesday, May 21, 2014 8:56:53 PM(UTC)
mstt

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
FormulaPrimer  
#3 Posted : Thursday, May 22, 2014 4:25:45 PM(UTC)
FormulaPrimer

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 8/12/2005(UTC)
Posts: 73

Roy,

I think it is the basic code for the Smart Money Index..... I'm thinking about.

Thanks,

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.