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

    正文概述    2024-04-13 03:58:49  

    同花顺DDX趋势背离副图指标

    源码

    N1:=14;N:=8;

    AAQ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
    买量:=IF(CLOSE OPEN,AAQ*(HIGH-LOW),IF(CLOSE OPEN,AAQ*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,colorred;
    卖量:=IF(CLOSE OPEN,0-AAQ*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-AAQ*(HIGH-LOW),0-VOL/2)),LINETHICK0,colorcyan;
    进出量:=买量+卖量,COLOR00FFFF;
    N日内净流入:SUM(进出量,5),LINETHICK2,COLORFF55BB;
    流入:=IF(N日内净流入 REF(N日内净流入,1),N日内净流入,0),coloryellow,LINETHICK2;
    RSI1:=N日内净流入;


    AA:=REF(RSI1,N)=HHV(RSI1,2*N+1);
    BB:=BACKSET(AA,N+1);
    CC:=FILTER(BB,N) AND RSI1=HHV(RSI1,N+1);
    A1:=BARSLAST(REF(CC,1));
    顶背离:=REF(CLOSE,A1+1) CLOSE AND REF(RSI1,A1+1) RSI1 AND CC;
    STICKLINE(FILTER(顶背离 0,5),100,RSI1,1,0),colorred;
    DRAWLINE(CC,RSI1,FILTER(顶背离 0,5),RSI1,0),colorred;
    AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1);
    BB2:=BACKSET(AA2,N+1);
    CC2:=FILTER(BB2,N) AND RSI1=LLV(RSI1,N+1);
    A2:=BARSLAST(REF(CC2,1));
    底背离:=REF(CLOSE,A2+1) CLOSE AND REF(RSI1,A2+1) RSI1 AND CC2;
    STICKLINE(FILTER(底背离 0,5),0,RSI1,1,0),colorcyan;
    DRAWLINE(CC2,RSI1,FILTER(底背离 0,5),RSI1,0),colorcyan;
    界:0,LINETHICK2,colorgreen ;

    同花顺DDX趋势背离副图指标

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺DDX趋势背离副图指标 加入收藏