通信达选股公式之横盘回调选——什么是横盘选股公式(2)
VARE:=((CLOSE 《 REF(CLOSE,1)) AND (CLOSE 《 REF(CLOSE,2)));
VARF:=((REF(VARE,1) AND (CLOSE 》= REF(CLOSE,1))) AND (CLOSE 《= REF(CLOSE,2)));
VAR10:=((REF(VARF,1) AND (CLOSE 《= REF(CLOSE,1))) AND (CLOSE 》= REF(CLOSE,2)));
VAR11:=((REF(VAR10,1) AND (CLOSE 》= REF(CLOSE,1))) AND (CLOSE 《= REF(CLOSE,2)));
VAR12:=((REF(VAR11,1) AND (CLOSE 《= REF(CLOSE,1))) AND (CLOSE 》= REF(CLOSE,2)));
VAR13:=((REF(VAR12,1) AND (CLOSE 》= REF(CLOSE,1))) AND (CLOSE 《= REF(CLOSE,2)));
VAR14:=((REF(VAR13,1) AND (CLOSE 《= REF(CLOSE,1))) AND (CLOSE 》= REF(CLOSE,2)));
VAR15:=((REF(VAR14,1) AND (CLOSE 》= REF(CLOSE,1))) AND (CLOSE 《= REF(CLOSE,2)));
VAR16:=((REF(VAR15,1) AND (CLOSE 《= REF(CLOSE,1))) AND (CLOSE 》= REF(CLOSE,2)));
VAR17:=((REF(VAR16,1) AND (CLOSE 》= REF(CLOSE,1))) AND (CLOSE 《= REF(CLOSE,2)));
VAR18:=((REF(VAR17,1) AND (CLOSE 《= REF(CLOSE,1))) AND (CLOSE 》= REF(CLOSE,2)));
VAR19:=((REF(VAR18,1) AND (CLOSE 》= REF(CLOSE,1))) AND (CLOSE 《= REF(CLOSE,2)));
AA:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11)
OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2);
N:=3;MM:=2;
MTR:=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/MTR;
MDI:= DMM*100/MTR;
ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
BB:=CROSS(PDI,MDI) AND CROSS(PDI,REF(PDI,1));
CC:=MA(C,5)》MA(C,10);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
XG:=CROSS(CCI,0);
DD:=100*(HHV(H,10)-LLV(L,10))/LLV(L,10);
EE:=DYNAINFO(9)》0 AND DD《10;
AA AND DD AND CC AND BB AND EE AND XG;