最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信MACD底背离(主图副图选股源码)

    正文概述    2024-04-07 19:30:26  
    TJ1:=L1 L2 AND M1
    EXT:DRAWLINE(L2T=0,L,L1T=0 AND TJ AND TJ1 AND T =10 AND L2T 20 ,L,0),COLORYELLOW;
    DRAWTEXT(CROSS(EXT!=DRAWNULL,0.5),EXT*1.05,'底背离'),COLORYELLOW;


    {幅图}

    DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:EMA(DIF,9);
    MACD:(DIF-DEA)*2,COLORSTICK;
    T:=BARSLAST(CROSS(0,MACD));
    TA:=BARSLAST(CROSS(MACD,0));
    T2:=REF(T,TA+1)+TA+1;
    L1:=LLV(L,T+1);
    L2:=REF(L1,T+1);
    L1T:=BARSLAST(L=L1);
    M1:=REF(MACD,BARSLAST(L=L1));
    M2:=REF(M1,T+1+T+1);
    L2T:=BARSLAST(L=CONST(L2));
    TJ:=(T2-TA) =10 AND (TA-T)
    TJ1:=L1 L2 AND M1
    EXT:DRAWLINE(L2T=0,MACD,L1T=0 AND TJ AND TJ1 AND T =10 AND L2T 20,MACD,0),DOTLINE,COLORMAGENTA;
    DRAWTEXT(CROSS(EXT!=DRAWNULL,0.5),MACD,'底背离'),COLORMAGENTA;


    {选股}


    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    MACD:=(DIF-DEA)*2;
    T:=BARSLAST(CROSS(0,MACD));
    TA:=BARSLAST(CROSS(MACD,0));
    T2:=REF(T,TA+1)+TA+1;
    L1:=LLV(L,T+1);
    L2:=REF(L1,T+1);
    L1T:=BARSLAST(L=L1);
    M1:=REF(MACD,BARSLAST(L=L1));
    M2:=REF(M1,T+1+T+1);
    L2T:=BARSLAST(L=CONST(L2));
    TJ:=(T2-TA) =10 AND (TA-T)
    TJ1:=L1 L2 AND M1
    XG:TJ AND TJ1 AND L1T=0 AND T =10 AND L2T


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信MACD底背离(主图副图选股源码) 加入收藏