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

    正文概述    2024-04-14 17:20:06  

    参数:N1(1 300 5)N2( 1 300 10)N3(1 300 20)N4(1 300 30)
    P(1 5 2)M(1 60 20)N(1 500 250) M1(1 500 55)
     

    买线:INTPART((SUM(CLOSE*VOL*100,6)/SUM(VOL*100,6))*100.17)/100,COLORFF00FF,LINETHICK2;
    工作线:EMA(C,13),COLOR0000FF,LINETHICK2;
    一线:EMA(C,25),COLORWHITE,LINETHICK2;
    二线:EMA(CLOSE,99),LINETHICK3,POINTDOT,COLORYELLOW;
    江恩线:EMA(CLOSE,144),LINETHICK3,POINTDOT,COLORFFCC66;
    EMA1311:=EMA(C,13),COLOR0000FF,LINETHICK2;
    EMA341:=EMA(C,34),LINETHICK2,POINTDOT,COLORYELLOW;
    EMA551:=EMA(C,55),LINETHICK2,POINTDOT,COLORFF00FF;
    EMA120:=EMA(C,120),LINETHICK2,POINTDOT,COLORFFCC66;
    AR1:=EMA551>EMA341 AND EMA341>EMA1311;
    AR2:=BARSLAST((C-EMA1311)/EMA1311*100<-6);
    AR3:=EMA1311>=REF(EMA1311,2);
    AR4:=COUNT(CROSS(C,EMA1311),AR2)=1;
    AR5:=AR1 AND AR2 AND AR3 AND AR4;
    AR6:=AR5 AND FILTER(AR5,10);
    STICKLINE(AR6,O,C,2.5,0),LINETHICK2,COLORYELLOW;
    BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;
    BR2:=ABS((EMA1311-EMA341)+(EMA341-EMA551))/C<0.2;
    BR3:=C>EMA551 AND (REF(C,1) BR4:=BR1 AND BR2 AND BR3;
    STICKLINE(BR4 AND FILTER(BR4,10),O,C,2.5,0),LINETHICK2,COLOR4080FF;
    CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
    CR2:=V>MA(V,5)*0.6;
    CR3:=COUNT(CROSS(EMA1311,EMA551),3)=1;
    CR4:=ABS(EMA341-EMA551)/EMA551<0.03;
    CR5:=EMA551<=EMA120 AND EMA551>=REF(EMA551,1);
    CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);
    DR1:=EMA1311>EMA341 AND EMA341 DR2:=BARSLAST(CROSS(C,EMA551) );
    DR3:=H=HHV(H,DR2);
    DR4:=BARSLAST(DR3);
    DR5:=COUNT(O>C AND CEMA551 AND BETWEEN((C-EMA551)/EMA551,0,0.02),DR4)=1;
    DR6:=C>REF(C,1) ;
    DR7:= DR1 AND DR5 AND DR6 ;
    DR8:=DR7 AND FILTER(DR7 ,10);
    STICKLINE(DR8,O,C,2.5,0),LINETHICK2,COLORFF0080;
    ER:=BARSLAST(REF(CROSS(EMA551,EMA341),1)) AND CROSS(EMA341,EMA551);
    FR:=BARSLAST(REF(CROSS(EMA341,EMA1311),1)) AND CROSS(EMA1311,EMA341);
    GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
    GR2:=EMA1311>EMA341 AND EMA341>EMA551 AND EMA1311>REF(EMA1311,1);
    GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
    GR4:=H=HHV(H,GR1);
    GR5:="MACD.MACD"(12,26,9) GR6:=GR2 AND GR3 AND GR4;
    GR7:=GR2 AND GR3 AND GR4 AND GR5;
    DRAWTEXT(GR6 AND GR7,H+0.13,'*'),COLOR00FF00;
    HR2:=EMA1311>=REF(EMA1311,3) AND EMA341>=REF(EMA341,1) AND EMA551>=REF(EMA551,1) AND CROSS(C,EMA1311) AND CROSS(C,EMA341) AND CROSS(C,EMA551);
    STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,0),LINETHICK2,COLORFF80FF;


    MA1:=EMA(CLOSE,N1);
    MA2:=EMA(CLOSE,N2);
    MA3:=EMA(CLOSE,N3);
    MA4:=EMA(CLOSE,N4);
    TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
    OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
    OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
    OR CROSS(MA1,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018;
    TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/
    MIN(MA1,MIN(MA2,MA3))*100<=P;
    XG:=TJ1 AND TJ2;

    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA :=EMA(DIFF,9);
    MACD:=2*(DIFF-DEA);

    做多:IF(K>D AND MACD>0 AND V>1,2,0),COLORRED,NODRAW;
    做空:=IF(K1,-2,0),COLOR00FF00,NODRAW;
    强洗:=IF(MACD>0 AND K1,1,0),COLOR0099FF,NODRAW;
    弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00,NODRAW;

     


    STICKLINE(FILTER(TJ1,3),C,O,4,0),COLOR0000FF;
    DRAWICON(FILTER(XG,3),L*0.97,23);

    GET:=ZIG(3,3),COLORYELLOW;
    PL5:=ZIG(3,5);
    EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
    EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
    PL10:=ZIG(3,10);
    EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
    EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
    PL20:=ZIG(3,20);
    EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
    EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
    PL40:=ZIG(3,40);
    走强1:=BARSLAST(PL5 走弱1:=BARSLAST(PL5>REF(PL5,1));
    走强2:=BARSLAST(PL10 走弱2:=BARSLAST(PL10>REF(PL10,1));
    走强3:=BARSLAST(PL20 走弱3:=BARSLAST(PL20>REF(PL20,1));
    ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
    ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
    DTJZ5:=IF(PL10 DTJD5:=IF(PL10 ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
    ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
    DTJZ10:=IF(PL20 DTJD10:=IF(PL20 DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;
    DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;
    DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;
    DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'半仓'),COLOR0000FF;
    DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'稳赚'),COLOR0000FF;
    DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'清'),COLOR0000FF;
    DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'有机'),COLOR0000FF;
    DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'闪'),COLOR0000FF;
    DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'人'),COLORFF00FF;
    DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'鬼'),COLORFFFF00;
    DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'神'),COLOR0000FF;
    DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'走'),LINETHICK3,COLOR00FFFF;
    DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'买点'),LINETHICK3,COLOR00FFFF;
    DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)
    AND EX2,H*1.03,'清'),LINETHICK3,COLOR00FFFF;
    DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'少买'),
    LINETHICK3,COLOR00FFFF;

    HR:=HHV(HIGH,M1);
    HRY:=LLV(LOW,M1);
    HRY11:=HR*HRY;
    HRY33:=SQRT(HRY11),COLORGREEN,LINETHICK2;
    国:=IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED;

    MA5:=EMA(C,5),COLOR0000FF,LINETHICK2;
    MA6:=REF(MA1,1),COLORFFFFFF;
    MA7:=EMA(EMA(C,7),6),COLOR00FFFF,LINETHICK2;
    DRAWKLINE(H,O,L,C);
    指标王趋势:=(MA(EMA(EMA(EMA(CLOSE,2),2),2),13)*0.99),COLORGREEN;
    金砖线:=(HHV((REF(CLOSE,1)-REF(MA(MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW))),13),1)),12));
    注意:=DRAWTEXT(CROSS(指标王线,MA6),(LOW)*(0.93),'←---注意 ');
    笑:=DRAWTEXT(CROSS(指标王线,MA6) AND 指标王线>MA7,H*(0.93),'←-笑 ');

    MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
    G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0
    AND G1)+1);
    KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 -
    100));
    KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
    X1:=EMA(((KS
    / 10) + EMA(CLOSE,10)),3);AA:=-100*(X1-CLOSE)/X1;
    AC:=(EMA(AA,5)
    );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) +
    CLOSE),55);
    MM:=MA(MMV,1);SA:=(MM*0.985);SS:=(MA(CLOSE,5));
    DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));
    X2:=IF(((SSL>MM)),MM,SA),COLORFF00FF;
    Y1:=DMA(((CLOSE
    + OPEN) / 2),(VOL / (SMA(VOL,4,1)
    *4)));
    上开:=O;
    上收:=C;
    上高:=H;
    上低:=L;
    JJ:=(上开+上高+上低)/3;
    A:=EMA(JJ,4);
    X3:=A,COLORYELLOW,LINETHICK1;
    B:=REF(A,1);
    VA1:=EMA(上收,8);VA2:=EMA(上收,20);
    选手A:=MA(上收,3);
    箱顶A:=MA(REF(HHV(上收,6),1),3);
    箱底A:=MA(REF(LLV(上收,3),1),3);
    T1:=MA(上收,20)>=REF(MA(上收,20),1);
    T2:=CROSS(选手A,箱底A)
    AND 箱顶A/箱底A>100/100 AND T1;
    T3:=CROSS(箱顶A,选手A) AND
    箱顶A/箱底A>100/100;
    选手:=MA(上收,2);
    箱顶:=MA(REF(HHV(上收,30),1),2),COLOR0000FF;
    箱底:=MA(REF(LLV(上收,30),1),2),COLOR00FF00;
    T4:=CROSS(选手,箱底)
    AND 箱顶/箱底>110/100;
    T5:=CROSS(箱顶,选手) AND
    箱顶/箱底>110/100;
    VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
    VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);MA20:=MA(C,20);
    MA30:=MA(C,30);QSXS:=MA20>MA30
    AND MA20>REF(MA20,1) AND
    MA30>REF(MA30,1);
    ZF:=(C/REF(C,1)-1)*100;TDDF:=(L/REF(C,1)-1)*100<=-5
    AND
    (REF(HHV(H,5),1)/L-1)*100>=10;
    N1:=BARSLAST(CROSS(C,MA(C,5)));N2:=BARSLAST(CROSS(MA(C,5),C));
    HM:=IF(N1 AND ZF>=0 AND C>O AND QSXS;
    KX1:=ZF<=-3 AND
    C=3 AND C>O;
    JBY:=KX2 AND XDSJ<=2
    AND C>=REF(O*0.99,XDSJ) AND
    ZF>ABS(REF(ZF,XDSJ)*0.99);
    Z3:=IF(FILTER(JBY,1) AND QSXS,5,0);DRAWTEXT(Z2
    AND Z3 ,LOW*0.99,'送钱来'),COLORFF0080;


    EMA13:=EMA(C,13),COLORWHITE;
    EMA21:=EMA(C,21),COLORYELLOW;
    EMA34:=EMA(C,34),COLORFF00FF;
    EMA60:=MA(C,60),COLORFFCC66;
    VAR21:=(2*CLOSE+HIGH+LOW)/4;
    VAR31:=IF(YEAR>=2099 AND MONTH>2,0,1);
    VAR41:=LLV(LOW,5); VAR51:=HHV(HIGH,4);
    散户:=EMA((VAR21-VAR41)/(VAR51-VAR41)*100,4)*VAR3;
    庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
    DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;
    DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;
    DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
    DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);
    VAR91:=CLOSE-REF(CLOSE,5);
    VARA:=EMA(EMA(VAR91,5),5)/EMA(EMA(ABS(VAR91),5),5);
    VARC:=EMA(EMA(VAR91,20),20)/EMA(EMA(ABS(VAR91),20),20);
    卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
    DRAWICON(卖出<0,H+0.05,2);
    买线:=EMA(CLOSE,2),NODRAW;
    卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
    B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
    S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
    VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
    S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
    A0:=(L+H+C*2)/4;
    A1:EMA(A0,14)COLORBLUE,LINETHICK2,NODRAW;
    A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
    A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
    A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
    看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
    逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
    DRAWICON(CROSS(A1X,0),L-0.15,1);

    VAR111:=C-REF(C,1);
    VAR211:=100*EMA(EMA(VAR111,6),6)/EMA(EMA(ABS(VAR111),6),6);
    MA13:=EMA(C,13);
    UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
    (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
    (MA5,MA13))+1),0),COLOR0000FF;
    DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
    (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
    (MA13,MA5))+1),0),COLOR00FF00;
    BT:=((LLV(VAR211,2)=LLV(VAR211,7)) AND COUNT(VAR211<0,2) AND CROSS(VAR211,MA(VAR211,2))) AND
    REF(DOWN,1)REF(DOWN,1);
    DRAWTEXT(BT,L-0.07,'短牛'),COLORRED;

    TJ11:=REF(DOWN,1)REF(DOWN,1) AND C DRAWTEXT(TJ11,L-0.15,'中牛'),COLORMAGENTA;

    HR1:=HHV(HIGH,55);
    HRY2:=LLV(LOW,55);
    HRY12:=HR1*HRY2;
    HRY34:=SQRT(HRY12);
    TJ21:=REF(DOWN,1)REF(DOWN,1) AND C STICKLINE(TJ21,H,L,2,0),COLORYELLOW;
    DRAWTEXT(TJ21,L-0.08,'大牛'),COLORYELLOW;
    ST:=REF(UP,1)>REF(UP,2) AND DOWN DRAWTEXT(ST,H+0.09,'清'),COLOR00FF00;


    DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;
    DEA2:=EMA(DIF1,9),COLORWHITE,LINETHICK2;

    AA8:=COUNT(CROSS(DIF1,DEA2),BARSLAST(DEA2>=0));
    二次金叉:=CROSS(DIF1,DEA2) AND DEA2<0 AND COUNT(AA8=2,21)=1;
    DRAWTEXT(二次金叉,L-0.08,' 二次金叉'),COLORYELLOW;
    A18:=BARSLAST(REF(CROSS(DIF1,DEA2),1));
    底背离:=REF(CLOSE,A18+1)>CLOSE AND DIF1>REF(DIF1,A18+1) AND CROSS(DIF1,DEA2);
    DRAWTEXT(底背离,L-0.08,' 底背离'),COLOR00FF00;
     


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