最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • DMI-XCH(DMI优化指标 副图 源码)

    正文概述    2024-04-08 00:25:22  

    参数N=14

    TRx:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
    HD:=HIGH-REF(HIGH,1);
    LD:=REF(LOW,1)-LOW;
    DMP:=SMA(IF(HD 0 AND HD LD,HD,0),N,1);
    DMM:=SMA(IF(LD 0 AND LD HD,LD,0),N,1);
    PDI:DMP*100/TRx,COLORRED;
    MDI:DMM*100/TRx,COLORGREEN;
    ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1),COLORYELLOW;


    DRAWICON(CROSS(PDI,MDI),pdi,4);
    DRAWICON(CROSS(PDI,adx),pdi,1);
    DRAWICON(CROSS(PDI,15),pdi,4);
    DRAWICON(CROSS(mdi,PDI),pdi,5);
    DRAWICON(CROSS(40,mdi),mdi,1);
    DRAWICON(CROSS(adx,MDI)and mdi 30 and adx 30,mdi,1);
    预警:if(ADX 90 and PDI=0,30,0),coloryellow,linethick2;
    买:if(cross(PDI,MDI)and(C 1.05*ref(C,1) or ref(C,1) 1.05*ref(C,2)) and (V 2*ref(V,1) or ref(V,1) 2*ref(V,2))and ma(V,5) ma(V,60) ,10,0),colorred,linethick2;
    买2:if(cross(PDI,MDI)and count(预警,10) =1,10,0),colorff00ff,linethick2;

    VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    VAR27:=REVERSE(VAR26);
    VAR28:=SMA(VAR26,3,1);
    波段王:= SMA(VAR28,3,1),COLORFF00FF,LINETHICK2;
    波段鬼:= SMA(波段王,3,1),COLORYELLOW,LINETHICK2;
    低吸:IF(CROSS(波段王,波段鬼) AND 波段王 40,5,0),COLORRED ,LINETHICK2 ;
    高卖:IF(CROSS(波段鬼,波段王) AND 波段鬼 75,35,40),COLORGREEN ,LINETHICK2 ;

    15LINEDOT;
    30LINEDOT;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » DMI-XCH(DMI优化指标 副图 源码) 加入收藏