联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

波段CCI

2016-10-23 13:47:46点击:

TYP := (HIGH + LOW + CLOSE)/3;

CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI5:MA(CCI,5);
CCI10:=MA(CCI,10);
CCI2:=MA(CCI,2);
STICKLINE(CCI<-100,CCI,-90,0,0), colorwhite;
STICKLINE(CCI<-100,CCI,-100,0,0),coloryellow;
STICKLINE(CCI10<-100,CCI10,-110,0,0), colormagenta;
STICKLINE(CCI>100 AND CCI<=200,100,CCI,0,0),colorwhite;
STICKLINE(CCI>200 AND CCI<=300,200,CCI,5,0),colorwhite;
STICKLINE(CCI>300,300,CCI,9,0),colorwhite;
STICKLINE(CCI5>100 AND CCI5<=200,100,CCI5+5,0,0),coloryellow;
STICKLINE(CCI5>200 AND CCI5<=300,200,CCI5+5,5,0),coloryellow;
STICKLINE(CCI5>300,300,CCI5+5,7,0),coloryellow;
STICKLINE(CCI10>100 AND CCI10<=200,100,CCI10+5,0,0),colormagenta;
STICKLINE(CCI10>200 AND CCI10<=300,200,CCI10+5,5,0),colormagenta;
STICKLINE(CCI<-150,CCI,-150,5,0), colorwhite;
STICKLINE(CCI5<-150,CCI5-5,-150,5,0),coloryellow;
STICKLINE(CCI10<-149,CCI10-5,-160,5,0), colormagenta;
AB1:300,colorblue,LINETHICK3;
AB0:200,colorblue,LINETHICK2;
///www.88gs.com
AB:100,colorgreen;
EF:-100,colorred;
GH:-200,coloryellow;
AA1:=BARSLAST(REF(CROSS(CCI,CCI5),1));
STICKLINE((CLOSE<REF(CLOSE,AA1+1) AND CCI>REF(CCI,AA1+1)
AND CROSS(CCI,CCI5)  AND (CCI<0 OR REF(CCI,1)<0)) OR CCI<-200,0,120,7,0), colorred;
BB1:=BARSLAST(REF(CROSS(CCI5,CCI),1));
STICKLINE((CLOSE>REF(CLOSE,BB1+1) AND CCI<REF(CCI,BB1+1)
AND CROSS(CCI5,CCI) AND (CCI>0 OR REF(CCI,1)>0)) OR CCI>200,0,200,7,0),colorgreen;
DRAWTEXT(CROSS(CCI,CCI2),CCI2,'1'),colorred;
DRAWTEXT(CROSS(CCI,CCI5),CCI5,'2'),colorred;
DRAWTEXT(CROSS(CCI2,CCI5),CCI5,'3'),coloryellow;
DRAWTEXT(CROSS(CCI2,CCI10),CCI10*1.2,'4'),colormagenta;
DRAWTEXT(CROSS(CCI2,CCI),CCI,'1'),colorwhite;
DRAWTEXT(CROSS(CCI5,CCI),CCI,'2'),colorwhite;
DRAWTEXT(CROSS(CCI5,CCI2),CCI2,'3'),colorgreen;
DRAWTEXT(CROSS(CCI10,CCI2),CCI2*1.1,'4'),colorblue;
DRAWICON(CCI>=REF(CCI,1) AND REF(CCI,1)<REF(CCI,2) AND REF(CCI,2)<REF(CCI,3)
AND (CCI<-50 OR REF(CCI,-1)<-50) ,CCI*1.1,9);
DRAWICON(CCI<=REF(CCI,1) AND REF(CCI,1)>REF(CCI,2)
AND (CCI>50 OR REF(CCI,1)>50 ),CCI*1.1,10);