同花顺BETA公式: n:=250; x:=(CLOSE-CLOSE[1])/CLOSE[1]*100; r:=INDEXC; y:=(r-r[1])/r[1]*100; BETA:(n*SUM(x*y,n)-SUM(x,n)*SUM(y,n))/(n*SUM(y*y,n)-POW(SUM(y,n),2)); 请老师将同花顺贝塔公式转成通达信的,谢谢!
爱约股解答:
N:=250;
X:=(CLOSE-REF(C,1))/REF(C,1)*100;
R:=INDEXC;
Y:=(R-REF(R,1))/REF(R,1)*100;
贝塔:(N*SUM(X*Y,N)-SUM(X,N)*SUM(Y,N))/(N*SUM(Y*Y,N)-POW(SUM(Y,N),2));