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

    正文概述    2024-04-14 13:53:54  

    自用狂MD附图(底背、顶背、回调、拉升)-股票指标公式

    三浪建仓以周线拉升为准!

     源码


    ★狂:STRLEFT('奔★',10),colormagenta;

    DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorwhite;

    DEA  : EMA(DIFF,M),coloryellow;

    中心:0 ,colorgray;

    多:IF(2*(DIFF-DEA)>中心 AND 2*(DIFF-DEA)>0,2*(DIFF-DEA),DRAWNULL),colorred,LINETHICK2;

    空:IF(2*(DIFF-DEA)<中心 AND 2*(DIFF-DEA)<0,2*(DIFF-DEA),DRAWNULL),colorgreen,LINETHICK2;

    空回调:=CROSS(DIFF,DEA) AND DEA<中心;

    回调:IF(空回调,DEA,DRAWNULL),colorgreen;

    DRAWICON(回调,DIFF*0.986,'SELL');

    多拉升:=CROSS(DIFF,DEA) AND DEA>中心 AND DIFF>中心;

    拉升:IF(多拉升,DEA,DRAWNULL),colorlired;

    DRAWICON(多拉升,-0.02,'buy');

    拉升量:=COUNT(多>REF(多,1),2)=2 AND 中心OPEN;

    加速拉升 :IF(拉升量,多,DRAWNULL),colorred,LINETHICK3;

    缩量:=COUNT(多=CLOSE;

    卖:IF(缩量,多,DRAWNULL),colorgreen,LINETHICK3;

    空缩量:=COUNT(多DEA AND OPEN>CLOSE;

    卖空:IF(空缩量,多,DRAWNULL),colorgreen,LINETHICK3;

    缩:=COUNT(空空 AND OPEN>=CLOSE;

    加速下跌:IF(缩,空,DRAWNULL),colorgreen,LINETHICK3;

    回升量:=COUNT(空>REF(空,2),1)=1 AND 中心>DEA AND 空>DIFF AND PRE<=OPEN;

    短线买:IF(回升量,空,DRAWNULL),colorlired,LINETHICK3;

    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

    底背离=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA) AND DEA<中心;

    底背:IF(底背离,DEA,DRAWNULL),colorlired;

    DRAWICON(底背,DIFF*0.986,'buy1');

    A2=BARSLAST(REF(CROSS(DEA,DIFF),1));

    顶背离=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF) AND DEA>中心;

    顶背:IF(顶背离,DEA,DRAWNULL),colorgreen;

    DRAWICON(顶背,DIFF*0.986,'buy1');
     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺狂MD公式 加入收藏