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

    正文概述    2024-04-13 09:54:17  

    N:=9; M:=9;
    VAR1:=(C-ma(C,6))/MA(C,6)*100;
    VAR2:=(C-MA(C,24))/MA(C,24)*100;
    VAR3:=(C-MA(C,32))/MA(C,32)*100;
    VAR4:=(VAR1+VAR2+VAR3)/3;
    VAR5:=EMA(VAR4,5);
    VAR6:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
    VAR7:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
    VAR8:=VAR7 REF(VAR7,1) AND V REF(V,1) AND C REF(C,1);
    A:=PERIOD;
    BL:=IF(A=0,150,IF(A=1,50,IF(A=2,30,IF(A=3,17,IF(A=4,15,IF(A=5,8,IF(A=6,3,IF(A=7,2,IF(A=8,50,IF(A=9,3,1.3))))))))));
    FM:=(EMA(CLOSE,1.414*N+1));
    FCL:=IF(FM =0.05,Abs(FM)+0.1,0);
    DIF:=(EMA(CLOSE,N)-EMA(CLOSE,2*N+2))/(FCL+FM)*100*BL,COLORLIRED,LINETHICK2;
    DEA:=EMA(DIF,N*0.75),COLORGREEN,LINETHICK2;
    DRAWBAND(DEA,RGB(55,250,96),DIF,RGB(155,50,196));
    ED:=(-0.4*REF(C,4)-0.4*REF(C,3)-1.1*REF(C,2)+0.9*REF(C,1)+2*C);
    VARR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    VARR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    VARR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
    VARR6:=(VARR3+VARR4+VARR5)/3;
    VARR7:=EMA(VARR6,5);
    指标:=EMA(EMA(VARR3,5),5)*3, COLORstICK;
    VARR8:=IF(VARR6 =-20,10,0);
    VAR9:=HHV(VARR8,10);
    STICKLINE(VARR8=10,20,10,5,0),COLOR6666FF;
    VARA:=IF(VAR9 AND crOSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
    RSV:=(SMA(ED,4,1)-LLV(L,M))/(HHV(H,M)-LLV(L,M))*100;
    K:SMA(RSV,3,1),COLORWHITE,LINETHICK1;
    D:SMA(K,3,1),COLORYELLOW,LINETHICK1;
    J:2*K-1*D,COLORGREEN,LINETHICK1;
    DRAWBAND(K,RGB(240,50,50),D,RGB(50,98,240));
    macd:2*(DIF-DEA),COLORRED,COLORSTICK;
    黄色转强买:(MacD 0 AND MACD REF(MACD,1),MACD),COLOR00FFFF,NODRAW;
    STICKLINE(MACD 0 AND MACD REF(MACD,1),0,MACD,0.1,0)COLOR00FF00;
    STICKLINE(MACD 0 AND MACD REF(MACD,1),0,MACD,0.1,0)COLORRED;
    STICKLINE(MACD 0 AND MACD REF(MACD,1),0,MACD,0.1,0),COLORCYAN;
    STICKLINE(MACD 0 AND MACD REF(MACD,1),0,MACD,0.1,0),COLOR00FFFF;
    看多:IF(LLV(VAR6,3) VAR6,-60,DRAWNULL),LINETHICK2,COLORRED;
    看空:IF(VAR6=LLV(VAR6,3),-60,DRAWNULL),LINETHICK2,COLORGREEN;
    中短:IF(J D,-50,DRAWNULL),LINETHICK2,COLORCC66FF;
    超短:IF(VAR8 0,-40,DRAWNULL),LINETHICK2,COLORYELLOW;
    观望:IF(J D,-50,DRAWNULL),LINETHICK1,COLORFF9900;
    战区:IF(VAR8=0,-40,DRAWNULL),LINETHICK1,COLOR6B8E23;
    金叉:=CROSS(DIF,DEA) AND DIF
    STICKLINE(金叉,0,8,3,0),COLORYELLOW;
    危险: STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,0,1,0);
    注意止损:STICKLINE(VAR2 AND FILTER(VAR1 REF(VAR1,1),3)
    AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);
    DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,'危'),COLORBLUE;
    DRAWTEXT(VAR2 AND FILTER(VAR1 REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'损'),COLORBLUE;
    TYP:=(HIGH+LOW+CLOSE)/3;
    cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
    转点:=IF(K D AND CCI 0 AND DIF DEA AND MACD 0,1,0);
    STICKLINE(转点=1,50,50,2,0),COLORYELLOW;
    STICKLINE(转点=0,50,50,2,0),COLORCYAN;
    STICKLINE(C,90,90,1,0),COLORYELLOW;
    STICKLINE(C,10,10,1,0),COLORCYAN;
    STICKLINE(C,-90,-90,1,0),COLORCYAN;

    通达信擒庄多空短中指标公式源码副图

    通达信擒庄多空短中指标公式源码副图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信擒庄多空短中指标公式源码副图 加入收藏