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

    正文概述    2024-05-04 04:17:21  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图

    公式解读:

    公式源码如下:


     

    VAR1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; 

    VAR2:=REVERSE(VAR1); 

    VAR3:=SMA(VAR1,3,1); 

    K:SMA(VAR3,3,1),COLOR00FF00; 

    D:SMA(K,3,1),COLORWHITE; 

    YY:0,,{00020001}; 

    HH:85,,{00030001}; 

    BB:20,,{00010001}; 

    IF(CROSS(K,20),50,0),COLORRED; 

    IF(CROSS(K,D)ANDK 40,35,0),COLORYELLOW; 

    IF(CROSS(D,K)ANDD 75,95,0),COLORFF8900; 

    VAR3:=LLV(HIGH,240); 

    VAR4:=100*(CLOSE-VAR3)/VAR3; 

    VAR5:=REF(LLV(CLOSE,480),1); 

    VAR6:=REF(HHV(CLOSE,480),1); 

    VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5); 

    VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; 

    VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100; 

    VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; 

    VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; 

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

    VARD:=IF(VARC 23.16,VARC,0); 

    VARE:=VARC 1; 

    VAR10:=VAR4 0ANDVAR7 0; 

    VAR12:=(HIGH+LOW+CLOSE*2)/4; 

    VAR13:=EMA(VAR12,21); 

    VAR14:=STD(VAR12,21); 

    VAR15:=((VAR12-VAR13)/VAR14*100+200)/4; 

    VAR16:=(EMA(VAR15,89)-25)*1.56; 

    VAR17:=EMA(VAR16,5)*1.22; 

    VAR18:=EMA(VAR17,3); 

    VAR19:=3*VAR17-2*VAR18; 

    VAR1A:=IF(CROSS(VAR19,VAR17)ANDCROSS(VAR19,VAR18)ANDCROSS(VAR17,VAR18),1,0);VAR1B:=IF(CROSS(VAR17,VAR19)ANDCROSS(VAR18,VAR19)ANDCROSS(VAR18,VAR17),1,0); 

    买点:IF(FILTER(VAR8=0ANDVAREANDVAR10ANDVAR1A,5)=1,10,0),COLORRED; 

    卖点:IF(FILTER(VAR8=100ANDVARDANDVAR1B,5)=1,10,0),COLORGREEN; 

    VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4; 

    VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89); 

    VAR1E:=EMA(VAR1D,30); 

    VAR1F:=2*(VAR1D-VAR1E)*10; 

    VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2); 

    VAR25:=IF(VAR1F 0.015,VAR20,0)/45; 

    庄拉线:VAR25,COLORYELLOW; 

    VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150); 

    VAR27:=EMA(VAR26,100); 

    VAR28:=2*(VAR26-VAR27); 

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

    C1:=(TYP-ma(TYP,14))/(0.015*AVEDEV(TYP,14)); 

    C2:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84)); 

    C3:=IF(C1 EMA(C1,5),EMA(C1,5),C1); 

    stICKLINE(C1 100,C1,120,1,0),COLOR38FF00; 

    STICKLINE(C1 -100,C1,-120,1,0),COLOR00AAFF; 

    CC1:C1,COLORGREEN,LINETHICK2; 

    CC2:C2; 

    CC3:C3,LINETHICK2; 

    压力:HHV(MA(C3,3),13),LINETHICK2,COLORFF8000; 

    支撑:LLV(MA(C1,3),13),COLORRED,LINETHICK2; 

    VARA:=REF(LOW,1); 

    VARB:=SMA(Abs(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100; 

    VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3); 

    VARD:=LLV(LOW,30); 

    VARE:=HHV(VARC,30); 

    VARF:=IF(MA(CLOSE,58),1,0); 

    VARG:=EMA(IF(LOW =VARD,(VARC+VARE*2)/2,0),3)/618*VARF; 

    VARH:=IF(VARG 50,50,VARG); 

    STICKLINE(VARH -120,0,VARH,3,1),COLOR80FF80; 

    N1:=14; 

    N:=3; 

    M:=8; 

    LC:=REF(CLOSE,1); 

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

    :(TYP-ma(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK1; 

    TY:=CCI; 

    A1:=REF(TY,N)=HHV(TY,2*N+1);B1:=FILTER(A1,N);C1:=BacKSET(B1,N+1);D1:=FILTER(C1,N);{高} 

    A2:=REF(TY,N)=LLV(TY,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低} 

    H1:=(D1ANDNOT(D2))ORBARstATUS=2ORBARSCOUNT(C)=1; 

    L1:=(D2ANDNOT(D1));H2:=D1ANDNOT(D2); 

    X1:=REF(BArslAST(H1),1)+1;F1:=BACKSET(H1ANDCOUNT(L1,X1) 0,LLVBARS(IF(L1,L,10000),X1)); 

    G1:=F1 REF(F1,1);I1:=BACKSET(G1,2);LD:=I1 REF(I1,1);{过滤后低点} 

    L2:=LDORBARSTATUS=2ORBARSCOUNT(C)=1; 

    X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2ANDCOUNT(H2,X2) 0,HHVBARS(IF(H2,H,0),X2)); 

    G2:=F2 REF(F2,1);I2:=BACKSET(G2,2);HD:=I2 REF(I2,1);{过滤后高点} 

    R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);S1:=R1 REF(R1,1);{前一高} 

    T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);U1:=T1 REF(T1,1);{前一低} 

    R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2 REF(R2,1);{前二高} 

    T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2 REF(T2,1);{前二低} 

    T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);U3:=T3 REF(T3,1);{前三低} 

    T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);U4:=T4 REF(T4,1);{前四低} 

    R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);S3:=R3 REF(R3,1);{前三高} 

    R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);S4:=R4 REF(R4,1);{前四高} 

    压一:DRAWLINE(S2,TY,S1,TY,1),COLOR007B00,LINETHICK2;{★压力1:} 

    撑一:DRAWLINE(U2,TY,U1,TY,1),POINTDOT,COLORFF71FF,LINETHICK2;{★支撑1:} 

    压二:DRAWLINE(S3,TY,S2,TY,1),COLORFFFF09,LINETHICK2;{★压力2:} 

    撑二:DRAWLINE(U3,TY,U2,TY,1),POINTDOT,COLORYELLOW,LINETHICK2;{★支撑2:} 

    压三:DRAWLINE(S4,TY,S3,TY,1),COLORFF5959,LINETHICK2;{★压力3:} 

    撑三:DRAWLINE(U4,TY,U3,TY,1),POINTDOT,COLOR4D87FF,LINETHICK2;{★支撑3:}; 

    {CCI画线} 

    EM10:EMA(CCI,10),COLOR07ECEE; 

    EM20:EMA(CCI,20),COLOR00C500;STICKLINE(crOSS(CCI,EM10),-198,-160,2,0),COLOR8000FF;{画线} 

    STICKLINE(CROSS(EM10,CCI),198,160,2,0),COLOR00FF00;{死叉画线} 

    STICKLINE(CROSS(EM10,EM20),0+15,0-15,1,0); 

    STICKLINE(CROSS(EM20,EM10),0+15,0-15,1,0);上影线:H-MAX(O,C),LINETHICK0,COLORFF00FF; 

    下影线:MIN(O,C)-L,LINETHICK0,COLOR00FF00; 

    高低:H-L,LINETHICK0,COLORC0C0C0; 

    实体:C-O,LINETHICK0,COLORFFFFFF;200,COLOR00FF00; 

    100,COLORWHITE,POINTDOT; 

    0,COLOR8000FF; 

    -100,COLORWHITE,POINTDOT; 

    -200,COLOR00FF00; 

    {前期高低点——虚线} 

    QS:=HHV(CCI,13); 

    RS:=LLV(CCI,13); 

    VAR1:=BACKSET(REF(QS,2)=HHV(QS,5),3); 

    VAR2:=CROSS(VAR1,0.9); 

    VAR3:=BACKSET(REF(RS,2)=LLV(RS,5),3); 

    VAR4:=CROSS(VAR3,0.9); 

    压力:REF(QS,BARSLAST(VAR2)),POINTDOT,COLOR00FF00; 

    STICKLINE(CCI,REF(QS,BARSLAST(VAR2)),REF(QS,BARSLAST(VAR2)),5,0),COLOR00FF00; 

    支撑:REF(RS,BARSLAST(VAR4)),POINTDOT,COLORFF71FF{COLOR0087FF}; 

    STICKLINE(CCI,REF(RS,BARSLAST(VAR4)),REF(RS,BARSLAST(VAR4)),5,0),COLOR0087FF; 

    {线变色} 

    IF(CCI REF(CCI,1),CCI,DRAWNULL),LINETHICK2; 

    IF(CCI REF(CCI,1),CCI,DRAWNULL),LINETHICK2; 

    {右边▲▼--只是比较与前一日的大小,无判断方面的意义} 

    LC111:=REF(CLOSE,1); 

    RS1:=SMA(MAX(CLOSE-LC111,0),M,1)/SMA(Abs(CLOSE-LC111),M,1)*100; 

    ATR:=MA(MAX(MAX((RS1-RS1),ABS(REF(RS1,1)-RS1)),ABS(REF(RS1,1)-RS1)),15); 

    VM:=MA(RS1,N1); 

    DRAWTEXT(BARSTATUS=2ANDCCI REF(CCI,1),VM, ▲ ),COLORRED,LINETHICK2; 

    DRAWTEXT(BARSTATUS=2ANDCCI REF(CCI,1),VM, ▼ ),COLOREEEE00,LINETHICK2; 

    {笑脸+哭脸【无未来函数】} 

    obv:=CCI; 

    DRAWICON(D1,OBV{*1.05},2);{哭脸} 

    DRAWICON(D2,OBV,1);{笑脸} 

    {柱【副图】无未来函数} 

    N11:=9; 

    M11:=3; 

    快线:(CLOSE-LLV(LOW,N11))/(HHV(HIGH,N11)-LLV(LOW,N11))*100,COLORRED,LINETHICK0; 

    慢线:SMA(快线,M11,1),LINETHICK0; 

    BB:=IF(BARSLAST(CROSS(慢线,快线)) =3ANDCROSS(快线,慢线)AND慢线 30,20,0); 

    STICKLINE(BB,-30,-55,7,1),COLORYELLOW,LINETHICK3;{--黄柱} 

    DRAWTEXT(BB 0,50, B ),COLORF5F5F5,LINETHICK6; 

    AA:=IF(BARSLAST(CROSS(快线,慢线)) =4ANDCROSS(慢线,快线)AND快线 50,20,0); 

    STICKLINE(AA,60,35,7,1),COLOR00FF00,LINETHICK3;{--綱柱}; 

    DRAWTEXT(AA 0,45, S ),COLORF5F5F5,LINETHICK6; 

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

    LL:=REF(CLOSE,1); 

    MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100; 

    强弱分界:IF(VARH,0,0),COLORMAGENTA; 

    底:IF(crOSS(C1,-150),-150,-200),COLORFFFFFF,LINETHICK2; 

    顶:IF(CROSS(80,MM),200,250),LINETHICK2,COLORCYAN; 

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

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

    VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1); 

    线:IF(VAR28 0.1,VAR29,0)*5,COLORRED; 

    量价线:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100,COLORWHITE; 

    VAR2E:=IF(FILTER(量价线 0AND量价线 3,5)=1,12,0); 

    DRAWICON(买点 0,10,1); 

    DRAWICON(卖点 0,10,2); 

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

    VAR2:=SUM((VAR1-REF(LOW,1)-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0); 

    vAR3:=EMA(VAR2,1); 

    VAR4:=VAR3; 

    VAR5:=MA(VAR3,12); 

    VAR6:=MA(VAR3,26); 

    VAR7:=(VAR4-VAR5)*60; 

    主力拉升:IF(VAR7 0.05,VAR7,0),LINETHICK2; 

    VAR8:=(VAR5-VAR6)*30; 

    :IF(VAR8 0.05,VAR8,0),LINETHICK2; 

    VAR9:=CAPITAL/EMA(VOL,5)/30*1.1; 

    套牢线:VAR9; 

    VARA:IF(CROSS(VAR7,VAR9),50,0); 

    关注:FILTER(VARA,7); 

    DRAWICON(关注=50,0,1); 

    VARB:=EMA(HHV(HIGH,500),21); 

    VARC:=EMA(HHV(HIGH,250),21); 

    VARD:=EMA(HHV(HIGH,90),21); 

    VARE:=EMA(LLV(LOW,500),21); 

    VARF:=EMA(LLV(LOW,250),21); 

    VAR10:=EMA(LLV(LOW,90),21); 

    VAR11:=EMA((VARE*0.96+VARF*0.96+VAR10*0.96+VARB*0.558+VARC*0.558+VARD*0.558)/6,21); 

    VAR12:=EMA((VARE*1.25+VARF*1.23+VAR10*1.2+VARB*0.55+VARC*0.55+VARD*0.65)/6,21); 

    VAR13:=EMA((VARE*1.3+VARF*1.3+VAR10*1.3+VARB*0.68+VARC*0.68+VARD*0.68)/6,21); 

    VAR14:=EMA((VAR11*3+VAR12*2+VAR13)/6*1.738,21); 

    VAR15:=REF(LOW,1); 

    VAR16:=SMA(ABS(LOW-VAR15),3,1)/SMA(MAX(LOW-VAR15,0),3,1)*100; 

    VAR17:=EMA(IF(CLOSE*1.35 =VAR14,VAR16*10,VAR16/10),3); 

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

    游侠cci:Ema((TYP-MA(TYP,36.0270012))/(0.015*AVEDEV(TYP,36.0270012)),2.0332),colorwhite; 

    stICKLINE(游侠CCI -150,游侠CCI,-150,10,0),COLOR0000BB; 

    STICKLINE(C 0,-150,-151,6,0),colorblue; 

    VAR18:=LLV(LOW,30); 

    VAR19:=HHV(VAR17,30); 

    VAR1A:=IF(MA(CLOSE,58),1,0); 

    VAR1B:=EMA(IF(LOW =VAR18,(VAR17+VAR19*2)/2,0),3)/618*VAR1A; 

    VAR1C:=IF(VAR1B 50,50,VAR1B); 

    底部吸筹:STICKLINE(VAR1C 0,0,VAR1C,4,1);

    公式解读:


    输出XG:成交量(手) 3*1日前的5日内成交量(手)的最低值


    image.png



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