换手:vol/CAPITAL*100,NODRAW,COLORRED;
牛熊线:100,DOTLINE,COLORGREEN;
月C:cci#MONTH(14),COLORRED,LINETHICK3;
周C:CCI#WEEK(14),COLORCYAN,LINETHICK2;
X_1:=CCI(14);
X_2:=周C>=月C AND 周C>=200 AND 月C>=110;
STICKLINE(X_2,(-115),(-105),3,0),COLORRED;
DRAWICON(crOSS(X_1,100) AND 周C>=月C AND 周C>=200 AND 月C>=110,X_1,38);
X_3:=REF(CLOSE,1);
{CCI日周月共振}
X_4:=SMA(MAX(CLOSE-X_3,0),6,1)/SMA(Abs(CLOSE-X_3),6,1)*100;
X_5:=MA(X_4,6);
X_6:=IF(X_5>REF(X_5,1) OR X_4>X_5,X_5,DRAWNULL);
X_7:=IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3;
X_8:=EMA((X_7-MA(X_7,36.027))/(0.015*AVEDEV(X_7,36.027)),2.0332);
日:X_8,COLORBROWN,LINETHICK2;
粉低吸:EVERY(X_8<(-150) AND X_8<REF(X_8,1),3),NODRAW,COLORMAGENTA;
STICKLINE(X_8<(-150),X_8,(-150),2,0),COLORFF80FF;
STICKLINE(CLOSE>0,(-150),(-151),2,0),COLORBLUE;
DRAWICON(CROSS(X_8,100) AND 周C>=月C AND 周C>=200 AND 月C>=110,X_8,34);
DRAWICON(CROSS(X_8,110) AND 周C>=月C AND 周C>=200 AND 月C>=0 AND X_6,X_8,1);
X_9:=EMA(CLOSE,2);
X_10:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
STICKLINE(X_9>=X_10,0,10,2,1),COLOR2040FF;
STICKLINE(X_9<X_10,0,(-10),2,1),COLOR6CE424;
DRAWTEXT(ISLASTBAR,月C,3),COLORRED;
DRAWTEXT(ISLASTBAR,周C,4),COLORYELLOW;
DRAWTEXT(ISLASTBAR,日,5),COLORBROWN;