三组趋势抓涨停必须看副图指标 通达信趋势线指标公式 无未来 源码
指标源码:
涨停数:"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;
指标图示:
郑重声明:股市具有不确定性,个股走势是无法预测的。公式软件描述中的案例截图仅代表过去,仅供参考学习研究之用,不构成投资建议或未来保证,也并不能代表未来,依此操作,责任自负。股市有风险,入市需谨慎。
指标公式评论
(三组趋势抓涨停必须看副图指标 通达信趋势线指标公式 无未来 源码 )