DMI 選股公式 【參考孟爺教的條件】通達信(2010-08-03 02:37:02)
簡單的公式,沒有的可以參考一下,,方便找股票,!
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1); LD :=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N); DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N); PDI: =DMP*100/TR; MDI: =DMM*100/TR; ADX: =EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M); ADXR:=EXPMEMA(ADX,M); Xg:mdi<pdi and mdi<adxr and cross(adx,mdi); DMI穿三線的選股 TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N); HD :=HIGH-REF(HIGH,1); LD :=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N); DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N); PDI:=DMP*100/TR; MDI:=DMM*100/TR; ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M); ADXR:=EXPMEMA(ADX,M); 買點:(CROSS(PDI, MDI)AND CROSS(PDI, ADX)AND CROSS(PDI, ADXR))AND CLOSE>OPEN DMI指標公式與條件選股公式 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指標公式 ?。校模桑荆矗?,MDI<10,ADX>50條件選股公式 發(fā)一個追漲的選股預警公式,,根據徐文明老師的理論編寫的,原理:當DMI處于火箭升空時股價自5日線啟動且MACD紅柱KDJ小于100,,盤中實時預警出現后可追漲,注意不可滿倉,!文件我不會導出望有朋友指教,。以下是源碼:通達信 去除ST:=EXIST(C/REF(C,1)>1.055,60); 去除停牌:=DYNAINFO(4)>0; XG:=去除ST 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 VOL>REF(VOL,1) AND (LOW<=(MA.MA1)) AND (MA.MA1)>(MA.MA2) (C<30) AND(FINANCE(7)<300000000)AND (MACD.MACD>0) AND(KDJ.J)<100; 熱門選股組合A1:=VOL/REF(VOL,1);
A2:=A1>1 AND A15{當日漲幅在5%以上的} AND V>MA(V,5)*1.5{當日成交量明顯放大的} {AND VOL/(DYNAINFO(37))*100>5{換手率在5%以上的} 出手就贏選股 LC := REF(CLOSE,1);
RSI14:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; YSZD:=MA(MA(RSI14,5),3)-MA(MA(MA(RSI14,5),3),9); MA5:=MA(C,5); MA30:=MA(C,30); MA60:=MA(C,60); MA120:=MA(C,120); A:=MA5>REF(MA5,1); B:=MA30>REF(MA30,1); E:=MA60>REF(MA60,1); D:=MA120>REF(MA120,1); ZZ:=A AND B AND E AND D; X6:=(3*C+L+O+H)/6; 多空線:=(20*X6+19*REF(X6,1)+18*REF(X6,2)+17*REF(X6,3)+16*REF(X6,4)+15*REF(X6,5)+14*REF(X6,6) +13*REF(X6,7)+12*REF(X6,8)+11*REF(X6,9)+10*REF(X6,10)+9*REF(X6,11)+8*REF(X6,12) +7*REF(X6,13)+6*REF(X6,14)+5*REF(X6,15)+4*REF(X6,16)+3*REF(X6,17)+2*REF(X6,18)+ REF(X6,20))/210; FF:=IF(YSZD>REF(YSZD,1) AND REF(YSZD,1)=REF(LLV(YSZD,100),1),2,0) AND ZZ; VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100; VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3); VARD:=LLV(LOW,30); VARE:=HHV(VARC,30); VARF:=IF(MA(CLOSE,58),1,0); VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF; VARH:=IF(VARG>28,28,VARG); RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); K:=SMA(RSV,3,1); D5:=SMA(K,3,1); J:=3*K-2*D5; X5:=LLV(J,2)=LLV(J,8); VA:=(2*C+H+L)/4; VB:=LLV(L,5); VC:=HHV(H,5); JL:=EMA(VOL,13); JE:=EMA(AMOUNT,13); JX:=((JE / JL) / 100); RGL:=(((CLOSE - JX) / JX) * 100); V1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; V2:=2*ABS(V1); K1:=SMA(RSV,3,1); DK1:=K1-REF(K1,1); 出手就贏:DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9 OR CROSS(J,3) AND FF AND CROSS(C,多空線); 本指標是條件選股指標! Var1:=REF(INDEXC,1); 指標導入的方法:打開大智慧L2--菜單欄上面的指標--指標管理--條件選股--其他--新建--把源碼復制粘貼上--填寫指標名稱--確定。選股時:打開大智慧--點菜單欄上面的工具--條件選股--其它--找到“高成功率選股”--執(zhí)行選股OK,。
|
|