在线检测未来函数

通达信抓涨停必须看指标公式

来源:Internet,编辑:股旁网,2018-06-13

涨停数:"880006$C"-1,COLORLIRED,NODRAW;
跌停数:"880006$O"-1,COLORGREEN,NODRAW;
上涨数:=INDEXADV,NODRAW;
下跌数:=INDEXDEC,NODRAW;
涨跌比:=上涨数/下跌数,NODRAW;
N:=3;
X:=BARSSINCE(15);
EX:=SUM(X,N);
XX:=X*X;
EXX:=SUM(XX,N);
Y:=MA(涨停数,8);
YY:=Y*Y;
XY:=X*Y;
EY:=SUM(Y,N);
EYY:=SUM(YY,N);
EXY:=SUM(XY,N);
涨停趋势:(N*EXY-EX*EY)/SQRT((N*EXX-EX*EX)*(N*EYY-EY*EY))+3,COLORWHITE,LINETHICK1;
MA涨停趋势:MA(涨停趋势,4),COLORYELLOW,LINETHICK1;
X2:=BARSSINCE(15);
EX2:=SUM(X2,N);
XX2:=X2*X2;
EXX2:=SUM(XX2,N);
Y2:=MA(跌停数,8);
YY2:=Y2*Y2;
XY2:=X2*Y2;
EY2:=SUM(Y2,N);
EYY2:=SUM(YY2,N);
EXY2:=SUM(XY2,N);
跌停趋势:(N*EXY2-EX2*EY2)/SQRT((N*EXX2-EX2*EX2)*(N*EYY2-EY2*EY2)),COLORGREEN,LINETHICK1;
MA跌停趋势:MA(跌停趋势,4),COLORCYAN,LINETHICK1;
X3:=BARSSINCE(15);
EX3:=SUM(X3,N);
XX3:=X3*X3;
EXX3:=SUM(XX3,N);
Y3:=MA(涨跌比,8);
YY3:=Y3*Y3;
XY3:=X3*Y3;
EY3:=SUM(Y3,N);
EYY3:=SUM(YY3,N);
EXY3:=SUM(XY3,N);
涨跌比趋势:(N*EXY3-EX3*EY3)/SQRT((N*EXX3-EX3*EX3)*(N*EYY3-EY3*EY3))+6,COLORRED,LINETHICK1;
MA涨跌比趋势:MA(涨跌比趋势,4),COLORMAGENTA,LINETHICK1;

通达信抓涨停必须看指标公式

相关文章