TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),13);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),13);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),13);
PDI:=DMP*100/TR;
MDI:=DMM*100/TR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,5);
ADXR:=EXPMEMA(ADX,5);
双:=CROSS(PDI,MDI) AND PDI<30 AND MDI<30;
蹄:=CROSS(ADX,ADXR) AND ADX<15 AND ADXR<15;
双蹄并进:COUNT(双,5)=1 AND COUNT(蹄,5)=1;
通达信双蹄并进选股指标公式的选股公式如下: