ZFA := ((C / REF(C,1)) - 1) * 100;
ZFB := ((C / O) - 1) * 100;
ZF := MAX(ZFA,ZFB);
MA1 := MA(CLOSE,5);
MA2 := MA(CLOSE,10);
MA3 := MA(CLOSE,20);
MA4 := MA(CLOSE,60);
上针 := ((H - MAX(O,C)) * 100) / MAX(O,C);
下针 := ((MIN(O,C) - L) * 100) / L;
DIF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIF,9);
macd := (DIF - DEA) * 2;
DD := BArslASTCOUNT(MacD > 0);
XD8 := MA(REF(HHV(H,8),1),2);
XD13 := MA(REF(HHV(H,13),1),2);
XD21 := MA(REF(HHV(H,21),1),2);
XD34 := MA(REF(HHV(H,34),1),2);
XD55 := MA(REF(HHV(H,55),1),2);
XD89 := MA(REF(HHV(H,89),1),2);
QQ1 := (BARSLAST((((((((((((((COUNT(H > XD8,4)) = 1) AND (H > XD8)) OR crOSS(C,XD8)) OR (((COUNT(H > XD13,4)) = 1) AND (H > XD13))) OR CROSS(C,XD13)) OR (((COUNT(H > XD21,4)) = 1) AND (H > XD21))) OR CROSS(C,XD21)) OR (((COUNT(H > XD34,4)) = 1) AND (H > XD34))) OR CROSS(C,XD34)) OR (((COUNT(H > XD55,4)) = 1) AND (H > XD55))) OR CROSS(C,XD55)) OR (((COUNT(H > XD89,4)) = 1) AND (H > XD89))) OR CROSS(C,XD89))) <= 4;
QQ2 := (COUNT(REF(ZF,1) >= 5,3)) = 0;
QQ3 := ((((ZFB >= 1) AND (ZFA >= 2)) AND (上针 >= 3)) AND (下针 <= 1.5)) AND (上针 > ZF);
QQ4 := ((上针 >= 3) AND (上针 > MIN(ZFA,ZFB))) AND (((ZFB >= 1) AND (ZFA >= 2)) OR ((ZFB >= 2) AND (ZFA >= 1)));
QQ5 := (((ZF >= 5.5) AND (ZFA >= 5.5)) AND (上针 >= 3)) AND (下针 <= 1);
亮剑 : FILTER((((((((((((QQ3 OR QQ4) OR QQ5) AND QQ1) AND QQ2) AND (MA1 > REF(MA1,1))) AND (MA2 > REF(MA2,1))) AND (MA3 > REF(MA3,1))) AND ((COUNT(ZF >= 9,10)) = 0)) AND (C > MA4)) AND (MA2 > MA3)) AND (MA1 > MA2)) AND ((DD >= 6) OR ((BARSLAST(CROSS(DIF,DEA)) <= 4) AND (DIF > 0))),6);