CX:=(REF(CLOSE,2)/REF(OPEN,2)<0.95)&&

(REF(OPEN,1) < REF(CLOSE,2))&&

(ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) &&

CLOSE/OPEN>1.05 && CLOSE>REF(CLOSE,2);{早晨之星}

A:=UPNDAY(C,3);{红三兵}

B:=EXIST(CX,N);{N是自定义天数,N天里存在过早晨之星}

AB:=EXIST(A,10);

CX AND AB AND B;