ADXR:=EXPMEMA(ADX,M);
買點(diǎn):(CROSS(PDI, MDI)AND CROSS(PDI, ADX)AND CROSS(PDI, ADXR))AND CLOSE>OPEN
AND C/REF(C,1)>0.5 AND VOL>MA(VOL,5)*1.5,COLORRED,LINETHICK3;
TR := 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),7,1);
DMM:= SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
PDI: DMP*100/TR,colorwhite;
MDI: DMM*100/TR,coloryellow;
ADX: SMA(ABS(MDI-PDI)/(MDI+PDI)*100,7,1),colorff00ff;
ADXR:(ADX+REF(ADX,7))/2,color00ff00
這是DMI指標(biāo)公式
取PDI>40,MDI<10,ADX>50條件選股公式
PDI:="DMI.PDI";
MDI:="DMI.MDI";
ADX:="DMI.ADX";
PDI>40 AND MDI<10 AND ADX>50
發(fā)一個追漲的選股預(yù)警公式,原理:當(dāng)DMI處于火箭升空時股價(jià)自5日線啟動且MACD紅柱KDJ小于100,盤中實(shí)時預(yù)警出現(xiàn)后可追漲,注意不可滿倉!文件我不會導(dǎo)出望有朋友指教。以下是源碼:通達(dá)信
去除ST:=EXIST(C/REF(C,1)>1.055,60);
去除停牌:=DYNAINFO(4)>0;
XG:=去除ST AND 去除停牌;
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),7,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),7,1);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,7,1);
ADXR:=(ADX+REF(ADX,6))/2;
(PDI>MDI) AND (PDI>ADX) AND (ADX>ADXR) AND(ADX>MDI) AND
(PDI>ADXR) AND C>=(MA.MA1)*1.005
AND VOL>REF(VOL,1) AND
(LOW<=(MA.MA1)) AND (MA.MA1)>(MA.MA2) AND (DYNAINFO(17))>1 AND
(C<30) AND(FINANCE(7)<300000000)AND (MACD.MACD>0) AND(KDJ.J)<100;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)