Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
A:=Security("C:\\Metastock Data\\BM Data\\.SPX",C);
B:=((21*Sum(ROC(C,1,%)*ROC(A,1,%),21))-
(Sum(ROC(C,1,%),21)*Sum(ROC(A,1,%),21)))/
((21*Sum(Pwr(ROC(A,1,%),2),21)) -
Pwr(Sum(ROC(A,1,%),21),2));
ALPHA:=(Sum(ROC(C,1,%),21)-(B)*Sum(ROC( A,1,%),21))/21;
Alpha;
make sure that the security is in the proper folder
|