最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 五龙起舞(源码、副图、飞狐、贴图)

    正文概述    2024-04-14 15:37:57  

    利用经典CCI/KDJ/RSI/WR/MDI五大指标揭示股价规律:
     


    TYP:=(H+L+C)/3;   
    CCIO:=(TYP-MA(TYP,9))/(0.015*AVEDEV(TYP,9)),NODRAW,Precision1;
    FILLRGN(CCIO>150,CCIO,150),ColorFFFF00;   
    FILLRGN(CCIO<-200,CCIO,-200),COLORA69AFA;   
    FILLRGN(CCIO<>150,150,-200),COLOR000000;
    RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;  
    KO:=SMA(RSV,N1,1),Precision1;
    DK:=SMA(KO,N2,1),Precision1;
    JO:=3*KO-2*DK,Precision1;
    FILLRGN(JO>88,JO,88),COLOR20E839;   
    FILLRGN(JO<12,JO,12),COLORRED;   
    DRAWBAND(88,0,12,0);{区域无色}
    CCI:ccio,ColorYellow,Precision1,LINEDOT;DRAWTEXT(ISLASTBAR,CCI,'       CCI'),ColorYellow,LINETHICK16;
    J:JO,LINETHICK1,ColorWhite,Precision1;DRAWTEXT(ISLASTBAR,J,' J'),ColorWhite,LINETHICK16;
    K:KO,COLORFF00FF,Precision1,nodraw;
    D:DK,ColorGreen,Precision1,nodraw;
    A2:=BARSLAST(REF(CROSS(KO,DK),1));
    B2:=REF(C,A2+1)>C AND REF(KO,A2+1) C2:=BARSLAST(REF(CROSS(DK,KO),1));
    D2:=REF(C,C2+1)KO AND CROSS(DK,KO);
    KDJ底背:=B2>0;
    DRAWTEXT(B2>0,k*1.1,'   K底背'),COLORFF00FF;DRAWICON(B2>0,k*1.1,1);
    KDJ顶背:=D2>0;DRAWTEXT(D2>0,k*1.1,'K顶背'),COLORFFCC66;
    DRAWTEXT(CROSS(K,D),k*0.95,' K金'),ColorYellow;
    RSI:SMA(MAX(c-REF(c,1),0),6,1)/SMA(ABS(c-REF(c,1)),6,1)*100,Precision0,COLORred;DRAWTEXT(ISLASTBAR,RSI,'       RSI'),ColorRed;
    R1:=SMA(CCIO,3,1);   
    D1:=SMA(R1,3,1);   
    J1:=3*R1-2*D1;   
    RR1:=EMA(J1,5);   
    RR2:=REF(RR1,1);
    RR:=RR1>RR2;
    买:=RR AND NOT(REF(RR,1)) AND (RR1<-130 AND RR1<-130),LINETHICK0;DRAWTEXT(买,CCIO*0.95,'↑B'),LINETHICK17,ColorRED;
    卖:=REF(RR,1)=1 AND NOT(RR) AND RR1>100,LINETHICK0;DRAWTEXT(卖,CCIO*0.95,'↓S'),LINETHICK16,ColorGreen;
    tja:=(2*C+H+L)/4;
    tjb:=LLV(L,9);{9-34D}
    tja1:=HHV(H,9);{9-34D}
    BX:=EMA((tja-tjb)/(tja1-tjb)*100,8);
    BX1:=EMA(BX,5);
    {STICKLINE(BX-BX1>0,BX,BX1,8,1),COLORRED;
    STICKLINE(BX-BX1<0,BX,BX1,8,1),COLOR00FF00;}
    DRAWBAND(BX,RGB(255,00,255),BX1,RGB(110,200,255));
    短线多空:PARTLINE(bX>BX1,0),COLOR0000FF,LINETHICK2;DRAWTEXT(ISLASTBAR,短线多空,' 短线多空'),ColorBlue,LINETHICK15;
    PARTLINE(BX<=BX1,0),ColorGreen,LINETHICK2;
    DRAWTEXT(CROSS(BX,BX1),BX*0.95,' ↑▲反向'),ColorYellow;
    TR1:=SMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(L-REF(C,1))),14,1);
    HD:=H-REF(H,1);
    LD:=REF(L,1)-L;
    DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),14,1);
    DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),14,1);
    PDI:=DMP*100/TR1;
    STICKLINE(RSI>88,0,50,0.5,0),ColorGreen;
    DRAWTEXT(RSI>88,50*1.1,'!RIS'),ColorGreen;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 五龙起舞(源码、副图、飞狐、贴图) 加入收藏