MACD出多时标注最高价,MACD出空时标注最低点

    无敌期货 发表于 2020-06-07 08:48 ・644次浏览 1条跟帖 赢顺 wh6 回复

    MACD出多时标注最高价,MACD出空时标注最低点    
    
    DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),COLORRED,PRECIS1;
    DEA:EMA(DIFF,M),COLORCYAN,PRECIS1;
    A:2*(DIFF-DEA),COLORYELLOW,NODRAW;
    B:=REF(A,1);
    STICKLINE1(A-B>0,0,A,2,1),COLORMAGENTA;
    STICKLINE1(A-B<0,0,A,2,1),COLORGREEN;
    DRAWICON(CROSS(DIFF,DEA),DIFF,1);
    DRAWICON(CROSS(DEA,DIFF),DIFF,2);
    PLAYSOUND(C>DIFF&&CROSS(DIFF,DEA),'B');
    
    PLAYSOUND(C>DEA&&CROSS(DEA,DIFF),'B');
    

    autojiaoyi.com 沙发

    参考
    DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORRED,PRECIS1;
    DEA:EMA(DIFF,9),COLORCYAN,PRECIS1;
    A:2*(DIFF-DEA),COLORYELLOW,NODRAW;
    B:=REF(A,1);
    STICKLINE1(A-B>0,0,A,2,1),COLORMAGENTA;
    STICKLINE1(A-B<0,0,A,2,1),COLORGREEN;
    DRAWICON(CROSS(DIFF,DEA),DIFF,1),VALIGN0;
    DRAWICON(CROSS(DEA,DIFF),DIFF,2);
    PLAYSOUND(C>DIFF&&CROSS(DIFF,DEA),'B');
    
    PLAYSOUND(C>DEA&&CROSS(DEA,DIFF),'B');
    DRAWNUMBER(CROSS(DIFF,DEA),DIFF,H,0,COLORRED);
    DRAWNUMBER(CROSS(DEA,DIFF),DIFF,L,0,COLORGREEN),VALIGN0;
    
    回复

    本版积分规则

    发布新内容
    请关注微信公众号,获取最新指标公式
    加入收藏 我要分享
    分享到论坛或者博客

    复制
    热门指标策略
    快速回复 返回顶部 返回列表