Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Markos Katsanos’ article, “A Technical Method for Rating Stocks”, explains a system he created to rate stocks solely on technical indicators. Here is the MetaStock formula for this rating system:
Katsanos Stock Rating Score:Code:s1:= Security("ONLINE:SPY", C);
VFIPeriod := 130;
MADL:= 100;
{VFI formula}
Coef:= 0.2;
VCoef:= 2.5;
inter:= Log( Typical() ) - Log( Ref( Typical(), -1 ) );
Vinter:= Stdev(inter, 30 );
Cutoff:= Coef * Vinter * CLOSE;
Vave := Ref( Mov( V, VFIPeriod, S ), -1 );
Vmax := Vave * Vcoef;
Vc := Min( V, VMax );
MF := Typical() - Ref( Typical(), -1 );
VCP := If( MF > Cutoff, VC, If( MF < -Cutoff, -VC, 0 ) );
VFIa := Sum( VCP , VFIPeriod )/Vave;
VFI := If(BarsSince(Cum(1)>268)>=0, Mov( VFIa, 3, E),0);
MA:= Mov(C, MADL, S);
stiffness:= Sum(C < MA , 63);
rating:= (VFI>0) + (C > MA) + (MA > Ref( MA, -4)) + (stiffness <= 7 ) + ((Mov(s1, MADL, E) > Ref(Mov(s1, MADL, E),-2))*2);
rating
|