TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))*100/(1.5*AVEDEV(TYP,14));
RK:=SMA(CCI,3,1);RD:=SMA(RK,3,1);RJ:3*RK-2*RD,COLORBLUE,LINETHICK3;
头:=390+REVERSE(EMA(RJ, 1));
底:=-290+REVERSE(EMA(RJ,1));
抛:IF(RJ>头,200,250),COLORGREEN,LINETHICK3;
吸:IF(RJ<底,-180,-150),COLORRED,LINETHICK3;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*2000;
RSIE:=EMA(RSI,3);
DIFF:= EMA(RSIE,12) - EMA(RSIE,26);
BBDIFF:=DIFF-REF(DIFF,1);
DEA:= EMA(DIFF,9);
BBDEA:=DEA-REF(DEA,1);
MACD : 2*(DIFF-DEA), COLORSTICK;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORFFFF00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR00FF00;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR0099FF;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORRED;
DRAWBAND(DIFF,RGB(220,20,60),DEA,RGB(255,255,0));
DRAWBAND(RK,RGB(255,105,180),RD,RGB(34,139,34));
0,COLORRED,LINETHICK2;