最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 同花顺MACD背离量柱指标公式

    正文概述    2024-04-14 17:59:50  

    DIFF:EMA(CLOSE,9)-EMA(CLOSE,17);
    DEA:EMA(DIFF,8),COLOrffaa00;
    macd:=2*(DIFF-DEA);
    STICKLINE(MacD>=0,MACD,0,4,1),COLORF00FF0;
    STICKLINE(MACD<0,MACD,0,4,1),colorwhite;
    STICKLINE(MACD0,0,MACD,4,0 ),COLOR00aaff;
    X1:IF(diff<0,diff,0),COLOR0000FF,LINETHICK2;
    X2:IF(diff<0,0,diff),colormagenta,LINETHICK1;
    X3:IF(diff X4:IF(diff>dea,dea,dea),linethick1,COLORffbb11;
    低位金叉:=crOSS(DIFF,DEA) AND DIFF<-0.1;
    STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),coloryellow;
    DRAWTEXT(低位金叉,dea*0.86,' 金叉'),coloryellow;
    JCCOUNT:=COUNT(CROSS(DIFF,DEA),BArslAST(DEA>=0));
    二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
    STICKLINE(二次金叉,DEA*0.96,DEA*0.76,6,0),ColorFF00FF;
    DRAWICON(二次金叉,dea*1.1,'BUY') ;
    DRAWTEXT(二次金叉,DEA*0.96,' 金叉'),ColorFF00FF;
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
    STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),Color00FF00;
    DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,linethick1;
    DRAWTEXT(底背离,DEA*1.09,' 底背'),Color6600FF;
    A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);
    DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,linethick1;
    DRAWTEXT(顶背离,DEA*1.2,' 顶背'),Color00FF00;
    STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,10,0),color0000ff;
    STICKLINE(MACD>0 AND MACD STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,10,0),colorff00ff;
    STICKLINE(MACD<0 AND MACD Zero : 0;
    VAR1=HHV(VAR1,20);
    多转空:=((((LLV(MACD,4)>0) AND (MACDREF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));
    空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1) DRAWICON(多转空,MACD,2);
    DRAWICON(空转多,MACD,1);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺MACD背离量柱指标公式 加入收藏