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

    正文概述    2024-05-04 04:20:41  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图

    公式解读:

    公式源码如下:


     

    N:=14; 

    M:84; 

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

    cci1:(TYP-ma(TYP,N))/(0.015*AVEDEV(TYP,N)),colormagenta,LINETHICK2; 

    CCI2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),colorwhite,LINETHICK1; 

    秒杀CCI:ema((TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),2.0332),coloryellow; 

    stICKLINE(秒杀CCI -150,秒杀CCI,-150,2,0),colorred,LINETHICK6,STICK; 

    STICKLINE(C 0,-150,-151,2,0),coloryellow,LINETHICK1; 

    STICKLINE(秒杀CCI 150,秒杀CCI,150,2,0),coloryellow,LINETHICK6,STICK; 

    线: amp;nbsp;3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1),3,1),Color7900F2,linethick2; 

    买点准备:IF(趋势线 =10,12,0),coloryellow,LINETHICK1; 

    高位区:200,colorlired; 

    底位区:-150,colorgreen; 

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

    CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); 

    CCI超跌:=CROSS(-200,CCI); 

    启动量:=CROSS(V,MA(V,5)); 

    VAR2:=BARSLAST(CCI超跌); 

    VAR4:=COUNT(启动量,VAR2+1)=1; 

    VAR5:=BARSCOUNT(C) =120; 

    AA:=BARSLASTCOUNT(VAR4)=1ANDVAR5; 

    VAR6:=IF(AA=1ANDC O,0,1); 

    VAR7:=IF(AA=1ANDC O,1,0); 

    超跌启动:FILTER(COUNT(REF(VAR6,1)=0,2) 0ANDC OORVAR7,2); 

    紫柱越长,突破力度越大,突破时最好选择趋势多头,没有均线压制的票。 

    KL:=100*(WINNER(CLOSE)-WINNER(REF(C,1))),NODRAW; 

    SJ:=IF(DATE+19000000 20200609,1,1); 

    {减4天,上方时间提前2天,30号到期28号提示} 

    {DRAWGBK(O C,RGB(40,40,40),RGB(0,0,40),0, 01 ,0);}{背景不要可删除} 

    N:=14; 

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

    CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); 

    RSI1:=CCI; 

    AA:=REF(RSI1,N)=HHV(RSI1,2*N+1)*SJ; 

    BB:=BACKSET(AA,N+1)*SJ; 

    CC:=FILTER(BB,N)ANDRSI1=HHV(RSI1,N+1); 

    A1:=BARSLAST(REF(CC,1)); 

    {顶背离:REF(CLOSE,A1+1) CLOSEANDREF(RSI1,A1+1) RSI1ANDCC;} 

    {DRAWLINE(CC,RSI1,FILTER(顶背离 0,5),RSI1,0),COLORFF0000,LINETHICK2;} 

    {DRAWICON(顶背离,CCI*0.9,6);} 

    AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1); 

    BB2:=BACKSET(AA2,N+1); 

    CC2:=FILTER(BB2,N)ANDRSI1=LLV(RSI1,N+1); 

    A2:=BARSLAST(REF(CC2,1)); 

    {底:REF(CLOSE,A2+1) CLOSEANDREF(RSI1,A2+1) RSI1ANDCC2;} 

    {DRAWLINE(CC2,RSI1,FILTER(底背离 0,5),RSI1,0),COLORMAGENTA,LINETHICK2;} 

    {DRAWICON(底背离,CCI*1.1,5);} 

    上升:IF(CCI REF(CCI,1),CCI,DRAWNULL),LINETHICK1,COLORRED,DOTLINE; 

    X:=CROSS(CCI,-100); 

    {DRAWICON(X,-150,7);} 

    M:=CROSS(100,CCI); 

    {DRAWICON(M,150,8);} 

    IF(CCI =100,CCI,DRAWNULL),COLORGREEN; 

    IF(CCI =-100,CCI,DRAWNULL),COLORRED; 

    顶部:220*SJ,COLOR0000FF,LINETHICK1; 

    底部:-220*SJ,COLOR00FF00,LINETHICK1; 

    STICKLINE(CCI 220,180,CCI,0.5,0),COLORGREEN; 

    STICKLINE(CCI -220,-180,CCI,0.5,0),COLORRED; 

    YJD:=IF(DATE+19000000 20200605,1,0); 

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

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

    a:100; 

    b:-100; 

    KL1:=100*(WINNER(CLOSE)-WINNER(REF(C,2))),NODRAW; 

    STICKLINE(KL =0,KL,0,1,-1),COLORRED; 

    STICKLINE(KL 0,KL,0,1,-1),COLORGREEN; 

    LW:=SUM(KL,5),COLORWHITE; 

    LW10:=SUM(KL,10),COLORWHITE,COLORYELLOW,LINETHICK1; 

    LW20:=SUM(KL,20),COLORWHITE,COLORYELLOW,LINETHICK2; 

    DRAWICON(CROSS(LW20,0),0.1,5); 

    DRAWICON(CROSS(LW,0),0.1,5); 

    百高:=REF(HHV(KL,100),1),COLORWHITE; 

    年高:=REF(HHV(KL,240),1),COLORWHITE; 

    百高1:=REF(HHV(KL1,100),1),COLORWHITE; 

    年高1:=REF(HHV(KL1,240),1),COLORWHITE;T0:=BARSLAST(年高);突破线:=REF(KL,T0); 

    DRAWSL(T0 =1,突破线,0,1,1),COLORWHITE; 

    突破1:=IF(KL=HHV(KL,240),C,0); 

    T1:=BARSLAST(突破1);突破线1:=REF(C,T1);突破2:=IF(KL=HHV(KL,100),C,0); 

    T2:=BARSLAST(突破2);突破线2:=REF(C,T2); 

    CHAGULA:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW; 

    突破3:=IF(KL1=HHV(KL1,240),C,0); 

    T3:=BARSLAST(突破3); 

    突破线3:=REF(C,T3); 

    突破4:=IF(KL1=HHV(KL1,100),C,0); 

    T4:=BARSLAST(突破4); 

    突破线4:=REF(C,T4); 

    穿破:=(T1 =100ANDCROSS(C,突破线1))OR(T2 =100ANDCROSS(C,突破线2))OR(T3 =100ANDCROSS(C,突破线3))OR(T4 =100ANDCROSS(C,突破线4)); 

    周:CCI#WEEK,COLORMAGENTA,LINETHICK1; 

    月:CCI#MONTH,COLORLIRED,LINETHICK2; 

    周突破:(周 0AND周-REF(周,1) 90),COLORGREEN; 

    月突破:(月 0AND月-REF(月,1) 70),COLORGREEN; 

    周月突破:(周 0AND周-REF(周,1) 90)OR(月 0AND月-REF(月,1) 70),COLORGREEN; 

    STICKLINE(周突破,0,MAX(日,MAX(周,月)),1,0),COLORMAGENTA; 

    STICKLINE(月突破,0,MAX(日,MAX(周,月)),2,0),COLORMAGENTA;


    image.png

    公式解读:

    A赋值:CCI =250

    B赋值:A的10日累和

    输出XG:B =2




    每日通达信公式解答:


     

    编写要求: 

    一月中N次KDJ当日的收盘价的公式。 

    解答: 

    PLOYLINE(CROSS( KDJ.K , KDJ.D ),C);




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