最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信cci主图指标公式

    正文概述    2024-05-04 04:19:55  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图

    公式解读:


    公式源码如下:


     

    EMA5:EMA(C,5),COLORWHITE,LINETHICK2; 

    EMA13:EMA(C,13),COLORFF00FF; 

    EMA21:EMA(C,21),COLORYELLOW; 

    EMA34:EMA(C,34),COLORFFCC66; 

    EMA89:EMA(C,89),COLORBLUE; 

    SS:=CROSS(EMA5,EMA13)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 

    ORCROSS(EMA13,EMA21)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 

    ORCROSS(EMA21,EMA34)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 

    ORCROSS(EMA34,EMA89)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018; 

    DRAWICON(SS,L-0.04,1); 

    DD:=CROSS(EMA13,EMA21)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 

    ORCROSS(EMA13,EMA89)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 

    ORCROSS(EMA21,EMA89)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 

    ORCROSS(EMA21,EMA89)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018ANDCROSS(EMA5,EMA89); 

    {DD:=CROSS(EMA5,EMA89);} 

    DRAWICON(DD,L-0.04,3); 

    LX:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,LINETHICK1; 

    J:=SUM(VOL*CLOSE,5)/SUM(VOL,5); 

    M:=EMA(J,2),COLORWHITE,LINETHICK1; 

    DRAWICON((CROSS(M,LX)),LX,10); 

    DRAWTEXT((CROSS(M,LX)),LX, ←介入, ),COLOR00FF00; 

    RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100); 

    短期底部:=LLV(OPEN,30); 

    K:SMA(RSV,3,1); 

    D:SMA(K,3,1); 

    J:(3*K)-(2*D),COLOR0000FF,LINETHICK2; 

    VAR2:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100); 

    VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100); 

    VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100); 

    VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6); 

    VAR6:=MA(VAR5,3); 

    SG:=EMA(HHV(HIGH,1),8); 

    X1:=EMA(CLOSE,8); 

    X30:=((X1 REF(X1,1))AND(CLOSE X1)); 

    X31:=IF(((SG REF(SG,1))ORX30),1,0); 

    全仓出击:=((((COUNT((X31=1),4)=3)AND(X31=0))AND(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)) 0.085))*89); 

    STICKLINE(全仓出击,89,0,3,0); 

    DRAWICON((全仓出击 =89),全仓出击,1); 

    DRAWTEXT((全仓出击 =89),89, *大胆杀入  

    获利线:EMA(WINNER(C)*100,3),COLORWHITE; 

    庄筹线:EMA(WINNER(C)*70,5),COLORRED,LINETHICK2; 

    散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),COLORYELLOW,LINETHICK2; 

    收:=WINNER(C)*100; 

    开:=WINNER(O)*100; 

    博弈长:MAX(ABS(收-开),ABS(收-REF(收,1))),POINTDOT,COLORWHITE; 

    STICKLINE(庄筹线 散筹线,庄筹线,散筹线,0,0),COLORWHITE; 

    STICKLINE(收 =REF(收,1),0,博弈K线长,4,0),COLORRED; 

    STICKLINE(收 =REF(收,1),0,博弈K线长,4,0),COLOR00FF00; 

    5,COLORWHITE,POINTDOT; 

    20,COLORYELLOW,POINTDOT; 

    40,COLORFFCC66,POINTDOT; 

    60,COLORFF00FF,POINTDOT; 

    CC:FILTER((CROSS(5,庄筹线)AND散筹线 20)*60,10),COLORFF00FF; 

    VAR1:=SMA(AMOUNT,10,1)/1000000; 

    VAR2:=REF(VAR1,1); 

    VAR3:=MA(REF(CLOSE,1),5); 

    最高:VAR1*HIGH/VAR3*1/10,POINTDOT,COLOR009900,COLORGRAY; 

    最低:VAR1*LOW/VAR3*1/10,POINTDOT,COLOR009900,COLORYELLOW; 

    开盘:VAR1*OPEN/VAR3*1/10,POINTDOT,COLOR009900,COLORMAGENTA; 

    收盘:VAR1*CLOSE/VAR3*1/10,COLOR009900,COLORGREEN,POINTDOT; 

    生命线:EMA(收盘,12)LINETHICK1,COLORYELLOW; 

    昨收盘:=REF(收盘,1),POINTDOT,COLOR009900,LINETHICK0; 

    涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0; 

    STICKLINE(收盘 开盘,收盘,开盘,3,0),COLORRED; 

    STICKLINE(收盘 开盘,最高,MAX(收盘,开盘),0,1),COLORRED; 

    STICKLINE(收盘 开盘,MIN(收盘,开盘),最低,0,1),COLORRED; 

    STICKLINE(收盘 开盘,收盘,开盘,2,0),COLORGREEN; 

    STICKLINE(收盘 开盘,最高,MAX(收盘,开盘),0,1),COLORGREEN; 

    STICKLINE(收盘 开盘,MIN(收盘,开盘),最低,0,1),COLORGREEN; 

    DRAWTEXT(CC,60, 海底捞活鱼() ),COLORFF00FF; 

    AA:=REF(庄筹线,30) 40ORREF(庄筹线,20) 40; 

    AA1:=CROSS(庄筹线,散筹线); 

    DRAWTEXT(AA1,70, 鸡雀*** ),COLOR00FF00; 

    BB:=CROSS(28,庄筹线)AND散筹线 40ANDAA=1ANDLLV(L,60) LLV(L,250); 

    DRAWTEXT(BB,30, 决战诱空 ),COLORWHITE; 

    IF(BB,30,60),COLORFFCCCC; 

    OZ:=DYNAINFO(3)*1,COLOR0000FF; 

    stICKLINE(1,50/200+OZ,50/200+OZ,2,0),COLOR00AA00; 

    RTYP:=(HIGH+LOW+CLOSE)/3; 

    14:=(RTYP-ma(RTYP,14))/(0.015*AVEDEV(RTYP,14))/2; 

    CCI84:=(RTYP-MA(RTYP,84))/(0.015*AVEDEV(RTYP,84))/2; 

    MMCCI84:=OZ+CCI84/200,COLOR00FFFF,LINETHICK1; 

    STICKLINE(1,-50/200+OZ,-50/200+OZ,6,0),COLOR00AAAA; 

    DRAWBAND(MMCCI84,RGB(150,0,150),50/200+OZ,RGB(0,100,100)); 

    WLFX:=IF(100-(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100 95,(50/200+OZ)-(50/200+OZ)*0.02,50/200+OZ),COLOR00FFFF,LINETHICK0; 

    WLDB:=IF(100-(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100 5,(-50/200+OZ)+(-50/200+OZ)*0.02,-50/200+OZ),COLORFFFF00,LINETHICK1; 

    VAR1:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); 

    VAR2:=REF(VAR1,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR3:=REF(VAR2,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR4:=REF(VAR3,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR5:=REF(VAR4,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR6:=REF(VAR5,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR7:=REF(VAR6,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR8:=REF(VAR7,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR9:=REF(VAR8,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARA:=REF(VAR9,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARB:=REF(VARA,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARC:=REF(VARB,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARCC:=STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),3.2,0),COLORRED; 

    VARD:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); 

    VARE:=REF(VARD,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VARF:=REF(VARE,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR10:=REF(VARF,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR11:=REF(VAR10,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR12:=REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR13:=REF(VAR12,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR14:=REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR15:=REF(VAR14,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR16:=REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR17:=REF(VAR16,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    VAR18:=REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); 

    TYP:=(HIGH+LOW+CLOSE)/3; 

    cci:(TYP-ma(TYP,13))/(0.015*AVEDEV(TYP,13)),stICK; 

    STICKLINE(CCI 0,0,CCI,1,0),COLORWHITE; 

    STICKLINE(CCI =0,0,CCI,1,0),COLORYELLOW; 

    STICKLINE(CCI REF(CCI,1)ANDCCI 0ANDCCI -100,0,CCI,1,0),COLORGREEN; 

    STICKLINE(CCI REF(CCI,1)ANDCCI 100,0,CCI,1,0),COLORRED; 

    线:expma(CCI,5),COLORMAGENTA,LINETHICK2; 

    IF(趋势线 =REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2; 

    IF(趋势线 REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK2; 

    DRAWTEXT_FIX(1,0.4,0.85,0, ★★绿柱:轻仓 

    ★黄柱:加仓 

    ★红柱:重仓 

    ★白柱:持币 

    趋势线向上做多 

    趋势线向下减仓。★★ ),COLOR00FFFF; 

    超B:=L2_AMO(0,2)/10000.0; 

    大B:=L2_AMO(1,2)/10000.0; 

    中B:=L2_AMO(2,2)/10000.0; 

    小B:=L2_AMO(3,2)/10000.0; 

    超S:=L2_AMO(0,3)/10000.0; 

    大S:=L2_AMO(1,3)/10000.0; 

    中S:=L2_AMO(2,3)/10000.0; 

    小S:=L2_AMO(3,3)/10000.0; 

    TESTSKIP(NOT(超BOR大BOR中BOR小BOR超SOR大SOR中SOR小S)!=0); 

    大宗进:=(超B)+(大B),NODRAW; 

    大宗出:=(超S)+(大S),NODRAW; 

    非大宗进:=(中B)+(小B),NODRAW; 

    非大宗出:=(中S)+(小S),NODRAW; 

    DAZHIV:=CONST(MAX(Abs(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW; 

    DRAwrECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进 0),RGB(255,0,0),RGB(23,125,255))); 

    DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出 0),RGB(23,125,255),RGB(255,0,0))); 

    DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,122,950,IF(CONST(非大宗进 0),RGB(255,0,0),RGB(23,125,255))); 

    DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出 0),RGB(23,125,255),RGB(255,0,0))); 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.009,1,0, 进出 ),COLORMAGENTA; 

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1,1,0, 进出 ),COLORCYAN; 

    VARBB:=STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),3.20,1),COLORCYAN;{收阴} 

    VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1; 

    DRAWBAND(MMCCI84,RGB(150,0,150),50/200+OZ,RGB(0,100,100)); 

    DRAWICON(VAR19,LOW*0.99,1); 

    VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD; 

    DRAWICON(VAR1A,HIGH*1.01,2); 

    DRAWKLINE(H,O,L,C); 

    DRAWBAND(WLDB,RGB(250,0,2500),-50/200+OZ,RGB(0,0,0)); 

    DRAWBAND(50/200+OZ,RGB(255,255,0),WLFX,RGB(0,0,0)); 

    CCI84:MMCCI84,COLOR00FFFF,LINETHICK1; 

    判CCI14:OZ+CCI14/200,COLORDDCCCC,LINETHICK1; 

    MATT7:MA(CLOSE,7),COLOR0000FF,LINETHICK2; 

    生命34:MA(C,34),COLORWHITE,LINETHICK2; 

    IF(生命34 REF(生命34,1),生命34,DRAWNULL),LINETHICK2,COLORRED; 

    IF(生命34 REF(生命34,1),生命34,DRAWNULL),LINETHICK2,COLOR00FF00; 

    {靓k线} 

    STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,0),COLORRED; 

    STICKLINE(C OANDC REF(C,1),C,O,3,0),COLORFFCC00; 

    STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,3,0),COLOR000055;{红K}; 

    STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.7,0),COLOR000077;{红K}; 

    STICKLINE(CLOSE REF(CLOSE,1)ANDC O,OPEN,CLOSE,2.1,0),COLOR000099; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD; 

    STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF; 

    STICKLINE(CLOSE=REF(CLOSE,1),H,L,3,1),COLOR999999; 

    STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),COLORWHITE; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD; 

    STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF; 

    STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN; 

    STICKLINE(C REF(C,1)ANDC O,C,O,3,0),COLORFFCC00; 

    STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,3,0),COLOR990000; 

    STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,2.7,0),COLORCC0000; 

    STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,2.1,0),COLORFF4400; 

    STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,1.5,0),COLORFF8800; 

    STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,0.9,0),COLORFFCC00; 

    STICKLINE(18,100,0,5,0),COLORBLUE; 

    VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); 

    VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5); 

    VAR03:=CROSS(VAR02,VAR01); 

    VAR04:=REF(VAR02,2) REF(VAR02,1)ANDVAR02 REF(VAR02,1); 

    VAR05:=COUNT(VAR03,7) 0ANDVAR04; 

    VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); 

    VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1); 

    VAR08:=EMA(VAR07,10); 

    VAR09:=EMA(C,5); 

    VAR10:=LLV(LOW,33); 

    VAR11:=EMA(IF(LOW =VAR10,VAR09,0),3)*40; 

    VAR12:=IF(VAR11 100,VAR11*0.312,VAR11); 

    底部爆发:VAR12,COLORWHITE; 

    STICKLINE(VAR12 0,0,VAR12,3,0),COLORWHITE; 

    STICKLINE(VAR12 0,0,VAR12,2,0),COLOR555555; 

    STICKLINE(VAR12 0,0,VAR12,1,0),COLORWHITE; 

    STICKLINE(VAR02 0,0,VAR02,5,0),COLOR3A7841; 

    海岸:VAR02,COLORGREEN; 

    浪花:VAR01,COLORCYAN; 

    STICKLINE(VAR05ANDCOUNT(VAR05,5)=1,0,VAR12,4,0),COLORRED; 


    image.png


    [源码注释]通达信公式动态公式解读




    如果收盘价 =计算价,返回收盘价*1.1,否则返回无效数的最后一日取值设为常数,画白色


    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信cci主图指标公式 加入收藏