能抓所有:=(EMA(CLOSE,12) - EMA(CLOSE,26));
龙头股:=EMA(能抓所有,9);{高手网www.gs6699.com}
专选龙头股:=(2 * (能抓所有 - 龙头股));
选股公式:=CROSS(能抓所有,0);
UD0:=CROSS(0,能抓所有);
vddd1:=BARSLAST(选股公式);
vddd2:=BARSLAST(UD0);
vddd3:=REF(选股公式,1);
vddd4:=REF(UD0,1);
Tvddd3:=BARSLAST(vddd3);
Tvddd4:=BARSLAST(vddd4);
UDGLINE:=IF((Tvddd3 < Tvddd4),REF(HHV(HIGH,2),Tvddd3),REF(LLV(LOW,2),Tvddd4));
vddd5:=(((REF(CLOSE,1) <= REF(UDGLINE,1)) AND (CLOSE > UDGLINE)) AND (vddd1 < vddd2));
hhffd0:=(((REF(CLOSE,1) >= REF(UDGLINE,1)) AND (CLOSE < UDGLINE)) AND (vddd2 < vddd1));
JDU1:=(vddd5 AND (COUNT(vddd5,vddd1) = 1));
hhffd1:=(hhffd0 AND (COUNT(hhffd0,vddd2) = 1));
DEFUT:=BARSLAST(CROSS(专选龙头股,0));
DEFDT:=BARSLAST(CROSS(0,专选龙头股));
DEFUL:=IF((专选龙头股 >= 0),HHV(专选龙头股,(DEFUT + 1)),REF(HHV(专选龙头股,(DEFUT + 1)),(DEFDT + 1)));
DEFU2L:=REF(DEFUL,(DEFUT + 1));
eess1:((((hhffd1 OR (BARSLAST(JDU1) > BARSLAST(hhffd1))) AND (专选龙头股 >= 0)) AND (REF(专选龙头股,1) < REF(DEFU2L,1))) AND (专选龙头股 > DEFU2L));