{cci}
{cci卖点对于短期内暴涨的股票卖出非常适合}
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORRED,LINETHICK0;
cci高度关注:if(ref(cci,1)<-99 and cci >-98,1,0),colorwhite;
stickline(cci高度关注,20,40,6,1),linethick3,colorwhite;
cci逃逸:if(ref(cci,1)>99 and cci <98 and 个股资金指数 >45,1,0),colorgreen;
stickline(cci逃逸,80,95,6,1),linethick3,colorgreen;
弱势1:=if(cci<-100,cci/5+20,20);
stickline(弱势1,20,弱势1,1,0),linethick1,colorgreen;
弱势2:=if(cci<-50 and cci >-101,cci/5+20,20);
stickline(弱势2,20,弱势2,1,0),linethick1,coloryellow;
买入1:if(ref(cci高度关注,1)=1 and cci>-50,1,0);
买入2:if(ref(cci高度关注,2)=1 and cci>-50 and ref(cci,1)>-50,1,0);
买入3:if(ref(cci高度关注,3)=1 and cci>-50 and ref(cci,1)>-50,1,0);
买入4:if(ref(cci高度关注,4)=1and cci>-50 and ref(cci,1)>-50 and ref(cci,2)>-50,1,0);
stickline(买入1,20,60,1,0),linethick1,colorred;
stickline(买入2,20,60,3,0),linethick1,colorred;
stickline(买入3,20,60,5,0),linethick1,colorred;
stickline(买入4,20,60,6,0),linethick1,colorred;