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

    正文概述    2024-04-13 15:31:54  

    DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:EMA(DIF,9);
    MYY:=EMA(CLOSE,3)-EMA(CLOSE,3);
    YMM:=EMA(MYY,3);
    macd:(DIF-DEA)*2,COLORSTICK;
    IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
    IF(DIF MacD2:=MACD;
    获利比:WINNER(C),NODRAW;
    STICKLINE((MACD2>=0),0,MACD2,0,1),COLORRED;
    STICKLINE(((MACD2>=0) AND (MACD2 < REF(MACD2,1))),0,MACD2,0,0),COLORMAGENTA;
    STICKLINE((MACD2<0),0,MACD2,0,0),COLORGREEN;
    STICKLINE(((MACD2<0) AND (MACD2 > REF(MACD2,1))),0,MACD2,0,1),COLORWHITE;
    DRAWICON(LONGcrOSS(CLOSE,MA(CLOSE,5),17),MACD2,1);
    DRAWICON(LONGCROSS(MA(CLOSE,5),CLOSE,17),MACD2,2);
    DRAWICON(CROSS(DIF,DEA) AND DIF<=0.2,LLV(DIF,1),29);
    DRAWICON(CROSS(DIF>=0,DIF 低位反转:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1) STICKLINE(低位反转,0,MACD,0.3,0),COLORRED;
    高位反转:=MACD>0 AND MACDREF(MACD ,2)AND REF(MACD ,2)>REF(MACD ,3)AND REF(MACD ,3)>REF(MACD ,4);
    STICKLINE(高位反转,0,MACD,0.3,0),COLORGREEN;
    低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
    JCCOUNT:=COUNT(CROSS(DIF,DEA),BArslAST(DEA>=0));
    二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
    DRAWICON(二次金叉,0,25);
    三次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,60)=1;
    DRAWICON(三次金叉,0,26);A1:=IF(MACD2>0,1,-1);
    TJ:=MACD2>0;
    T:=MACD2<0;
    DRAWTEXT(BARSLAST(TJ)=1,MACD2,'1'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=2,MACD2,'2'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=3,MACD2,'3'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=5,MACD2,'5'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=8,MACD2,'8'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=13,MACD2,'13'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=21,MACD2,'21'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=34,MACD2,'34'),COLORYELLOW;
    DRAWTEXT(BARSLAST(TJ)=55,MACD2,'55'),COLORYELLOW;
    DRAWTEXT(BARSLAST(T)=1,MACD2,'1'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=2,MACD2,'2'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=3,MACD2,'3'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=5,MACD2,'5'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=8,MACD2,'8'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=13,MACD2,'13'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=21,MACD2,'21'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=34,MACD2,'34'),COLORGREEN;
    DRAWTEXT(BARSLAST(T)=55,MACD2,'55'),COLORGREEN;
    涨家数:INDEXADV,NODRAW,COLORRED;
    跌家数:INDEXDEC,NODRAW,COLORGREEN;
    正量能:涨家数/(涨家数+跌家数)*100,NODRAW,COLORMAGENTA;
    负量能:跌家数/(涨家数+跌家数)*100,NODRAW,COLORYELLOW;
    高开:=O>REF(H,1);
    隔空高开:高开,NODRAW;
    低开:=O 隔空低开:低开,NODRAW;


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