TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
XD:=CROSS(CCI,3);
STICKLINE(XD,L*0.99,L*0.97,3,0),LINETHICK1,COLORRED;
STICKLINE(XD,L*0.99,L*0.97,1,0),LINETHICK1,COLORYELLOW;
{ _通达信股票指标公式}
XG:=((HIGH+LOW+CLOSE)/3-MA((HIGH+LOW+CLOSE)/3,14))/(0.015*AVEDEV((HIGH+LOW+CLOSE)/3,14)),COLORRED,LINETHICK0;
CD1:=IF(REF(XG,1)<-99 AND XG>-98,1,0);
CD2:=IF(REF(CD1,1)=1 AND XG>-50,1,0);
CD3:=IF(REF(CD1,2)=1 AND XG>-50 AND REF(XG,1)>-50,1,0);
CD4:=IF(REF(CD1,3)=1 AND XG>-50 AND REF(XG,1)>-50,1,0);
CD5:=IF(REF(CD1,4)=1 AND XG>-50 AND REF(XG,1)>-50 AND REF(XG,2)>-50,1,0);
STICKLINE(CD2,L*0.99,L*0.97,3,0),LINETHICK1,COLORRED;
STICKLINE(CD3,L*0.99,L*0.97,3,0),LINETHICK1,COLORRED;
STICKLINE(CD3,L*0.99,L*0.97,1,0),LINETHICK1,COLORYELLOW;
STICKLINE(CD4,L*0.99,L*0.97,3,0),LINETHICK1,COLORRED;
STICKLINE(CD5,L*0.99,L*0.97,3,0),LINETHICK1,COLORRED;
STICKLINE(CD5,L*0.99,L*0.97,1,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(CROSS(-100,CCI) AND CCI
DRAWTEXT(CROSS(200,CCI) AND CCI
DRAWTEXT(CROSS(100,CCI) AND CCI
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!