DMI-XCH(DMI优化指标 副图 源码)

2011-02-17 09:14:00来源:本站整理浏览:241

参数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;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式