红买绿卖:DRAWNULL,COLORYELLOW;TYP := (HIGH + LOW + CLOSE)/3;M:=14;CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORRED;C1:=SMA(CC1,3,1);C2:=SMA(C1,3,1);C3:=3*C1-2*C2;CB1:=EMA(C3,5);CB2:=REF(CB1,1);DRAWBAND(CC1,RGB(50,225,50),100, RGB(250,150,50));
STICKLINE(C>1,100,-100,100,0),COLORBLACK;F1:=ZIG(3,15);方向:=IF((F1> REF(F1,1)),-100,100);STICKLINE(方向>90,-150,-100,10,1),COLORFF9428;STICKLINE(方向<0,100,150,10,1),COLORFF00FF;CCI雷达:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORWHITE,LINETHICK2;M1 := EMA( CLOSE, 9 );M2 := EMA( CLOSE, 18);MD :=M1 - M2;MM := EMA( MD, 3 );〓持仓 : IF( MD >= MM AND MD<= 0,CCI雷达, DRAWNULL ), COLORLIRED, LINETHICK2;〓减仓: IF( MD >= MM AND MD >0, CCI雷达, DRAWNULL ), COLORRED,LINETHICK2;〓空仓 : IF( MM>= MD AND MD > 0,CCI雷达, DRAWNULL ), COLORGREEN,LINETHICK2;〓观望: IF( MD < MM AND MD < 0,CCI雷达, DRAWNULL ), COLORWHITE,LINETHICK2;P:100 ,COLOR0000FF;D:-100 ,COLORFF9428;