『通達信DMI指標公式』DMI捕捉爆漲股-極品指標公式源碼免費奉送
n(1,100,14),m(1,100,6)}
input:n(14),m(6); TR0:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N); HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD, 0),N);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);PDI: DMP*100/TR0;MDI: DMM*100/TR0; ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:(ADX+REF(ADX,M))/2; 預(yù)警: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) ,20,0),colorred, linethick2;買2:if(cross(PDI,MDI) and count(預(yù)警,10)>=1,10,0),linethick3; 10;90;20 ; 買3:if( cross(PDI,MDI) and cross(PDI,ADX) and cross(PDI,ADXR),30,0); |
|
來自: bqucty > 《股票與財經(jīng)》