VAR1:=14;
VAR2:=60;
VAR3:=(HIGH+LOW+CLOSE)/3;
CCI1:(VAR3-MA(VAR3,VAR1))/(0.015*AVEDEV(VAR3,VAR1)),COLORWHITE,LINETHICK2;
CCI2:MA(CCI,2),COLORWHITE;
CCI3:MA(CCI,3),COLORWHITE;
CCI4:MA(CCI,4),COLORWHITE;
CCI5:MA(CCI,5),COLORWHITE;
CCI6:MA(CCI,6),COLORWHITE;
CCI7:MA(CCI,7),COLORWHITE;
CCI8:MA(CCI,8),COLORWHITE;
CCI9:MA(CCI,9),COLORWHITE;
CCI10:MA(CCI,10),COLORWHITE;
CCI11:MA(CCI,11),COLORWHITE;
强势区:100,POINTDOT,COLOR009F00;
弱势区:(-100),POINTDOT,COLORMAGENTA;
多空:0,POINTDOT,COLORWHITE;
IF(CCI1>100,CCI1,DRAWNULL),COLORRED,LINETHICK2;
IF(CCI1<(-100),CCI1,DRAWNULL),COLOR00CC66;
IF(CCI2>100,CCI2,DRAWNULL),COLORRED;
IF(CCI2<(-100),CCI2,DRAWNULL),COLOR00CC66;
IF(CCI3>100,CCI3,DRAWNULL),COLORRED;
IF(CCI3<(-100),CCI3,DRAWNULL),COLOR00CC66;
IF(CCI4>100,CCI4,DRAWNULL),COLORRED;
IF(CCI4<(-100),CCI4,DRAWNULL),COLOR00CC66;
DRAWICON(CCI>(-100) AND CCI2<(-80),CCI1,29);
VAR4:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR5:=SMA(SMA(VAR4,3,1),3,1)/28.57;
VAR6:=EMA(VAR5,5);
VAR7:=3*VAR5-2*VAR6;
{}
VAR8:=CROSS(VAR7,VAR5) AND VAR5<2.1 AND CLOSE>OPEN;
DRAWICON(VAR8,0,30);