A:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:=DMP*100/A,COLORRED LINETHICK2;
MDI:=DMM*100/A, LINETHICK2;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
去除ST股:=EXIST((C-REF(C,1))/REF(C,1)*100>5.6,60);
去除停牌:=DYNAINFO(17)!=0;{量比不为0}
去除高低价:=DYNAINFO(7)>5 AND DYNAINFO(7)ADX AND PDI>ADXR AND ADX>MDI AND ADXR>MDI AND CROSS(ADX,ADXR) AND 长期>30 AND DIF>DEA AND MACD>0 AND 去除ST股 AND 去除停牌 AND 去除大小盘股 AND 去除高低价;
【股票入门基础知识】【通达信】DMI腹中金叉选股指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。