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

    正文概述    2024-04-14 17:15:56  

    底背离选股 通达信【源码、副图、附图、说明】
    说明:金昌九老师为啦小3需要,要俺改为通达信版。再此感谢金昌九老师!
    底背离选股源码


    {底背离}
    INPUT:N(20,0,80);
    {1.MACD}
    DIFF :=EMA(CLOSE,7) - EMA(CLOSE,13);
    DEA := EMA(DIFF,3);
    MACD := 2*(DIFF-DEA);
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1) {2.KDJ}
    RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    A2:=BARSLAST(REF(CROSS(K,D),1));
    B2:=REF(C,A2+1)>C AND REF(K,A2+1) {3.RSI}
    LC := REF(CLOSE,1);
    RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
    RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
    A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
    B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)

    TYB:= (HIGH + LOW + 2*CLOSE)/4;
    CCI4:=(TYB-MA(TYB,28))/(0.015*AVEDEV(TYB,28));
    B4:=LAST(MA(C,5)REF(CCI4,1) AND CROSS(CCI4,-100); { CCI底背离'}

    XG:((B1 AND B2) OR (B2 AND B3) OR (B1 AND B3) OR ( B4 AND CCI4<-90) ) AND D


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