通达信波段CCI指标公式
X_1:=5;X_2:=14;X_3:=3;天顶线:200,COLOR6B8E23;地底线:(-200),COLOR6B8E23;牛熊线:100,COLOR4F4F2F;强弱线:(-100),COLOR4F4F2F;X_4:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;X_5:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;X_6:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;X_7:=(X_4+2*X_5+3*X_6)/6;X_8:=MA(X_7,3);X_9:=LLV(LOW,36);X_10:=HHV(HIGH,30);X_11:=EMA((CLOSE-X_9)/(X_10-X_9)*4,4)*25;X_12:=MA(100*(CLOSE-LLV(LOW,X_2))/(HHV(HIGH,X_2)-LLV(LOW,X_2)),X_3);X_13:=EMA(EMA(CLOSE,3),1);X_14:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;X_15:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;X_16:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;X_17:=(X_14+2*X_15+3*X_16)/6;X_18:=MA(X_17,3);X_19:=STICKLINE(X_18<=0-10,0,0-20,3.5,0);STICKLINE(X_18<=0-10,0,0-20,2.5,0),COLOR0088FF;X_20:=(X_13-REF(X_13,1))/REF(X_13,1)*1000;STICKLINE(X_20<0,X_20,0,2.5,0),COLORFF8800;X_21:=0;STICKLINE(X_20>REF(X_20,3) AND X_20>0,X_20,0,2.5,0),COLOR0000AA;X_22:=0;STICKLINE(X_20<REF(X_20,3) AND X_20>0,X_20,0,2.5,0),COLOR00AA00;STICKLINE(SUPV.主力净买量<0,0,SUPV.主力净买量,2.5,0),COLOR00AA00;X_23:=0;X_24:=0;X_25:=DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),vol);X_26:=DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL);X_27:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);X_28:=DMA(CLOSE,X_27);X_29:=(1+7/100)*X_28;X_30:=(1-7/100)*X_28;X_31:=(X_29+X_30)/2;X_32:=X_29>REF(X_29,1);X_33:=CLOSE>X_25 AND X_25>X_26;X_34:=CLOSE>X_29 AND X_32 AND X_33;X_35:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.141159;X_36:=(HIGH+LOW+CLOSE)/3;cci:(X_36-MA(X_36,X_2))/(0.015*AVEDEV(X_36,X_2)),COLORRED;X_37:=0;跌:IF(CCI<REF(CCI,1),CCI,DRAWNULL),COLORGREEN;