您現(xiàn)在的位置: 南方財(cái)富網(wǎng) >> 股票知識(shí) >> 股票公式 >> 正文
南財(cái)搜索

通達(dá)信公式:DMI 經(jīng)典選股公式(2)

2013/4/11 10:24:51   來源:本站原創(chuàng)   佚名
    
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);

  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ā)一個(gè)追漲的選股預(yù)警公式,原理:當(dāng)DMI處于火箭升空時(shí)股價(jià)自5日線啟動(dòng)且MACD紅柱KDJ小于100,盤中實(shí)時(shí)預(yù)警出現(xiàn)后可追漲,注意不可滿倉!文件我不會(huì)導(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;

上一頁  [1] [2] 

(南方財(cái)富網(wǎng)SOUTHMONEY.COM)
    南方財(cái)富網(wǎng)聲明:股市資訊來源于合作媒體及機(jī)構(gòu),屬作者個(gè)人觀點(diǎn),僅供投資者參考,并不構(gòu)成投資建議。投資者據(jù)此操作,風(fēng)險(xiǎn)自擔(dān)。
延伸閱讀
商務(wù)進(jìn)行時(shí)
每日必讀
學(xué)院24小時(shí)排行
證券導(dǎo)讀
熱圖推薦

關(guān)于南方財(cái)富網(wǎng) -版權(quán)聲明誠聘英才廣告服務(wù)網(wǎng)站地圖友情鏈接
特此聲明:廣告商的言論與行為均與南方財(cái)富網(wǎng)無關(guān)
dixmanbetx.com
南方財(cái)富網(wǎng) © 版權(quán)所有 閩ICP備09035581號(hào)