ZYG1:=BARSLAST(CURRBARSCOUNT=120);
ZYG2:=CONST(IF(ISLASTBAR=1,HHV(HIGH,ZYG1),0));
ZYG3:=CONST(IF(ISLASTBAR=1,LLV(LOW,ZYG1),0));
ZYG4:=EMA(CLOSE,3)>EMA(CLOSE,21);
ZYG5:=EMA(CLOSE,3)<EMA(CLOSE,21);
ZYG6:=EMA(CLOSE,3)>EMA(CLOSE,8);
ZYG7:=EMA(CLOSE,3)<EMA(CLOSE,8);
ZYG8:=EMA(HHV(HIGH,1),8);
ZYG9:=EMA(C,8)<REF(EMA(C,8),1) AND CLOSE<EMA(C,8);
ZYG10:=IF(ZYG8<REF(ZYG8,1) OR ZYG9,1,0);
ZYG11:=SMA(MAX(C-REF(C,1),0),2,1)/SMA(ABS(C-REF(C,1)),2,1)*100;
ZYG12:=ZYG11<45 AND REF(ZYG11,1)>45;
ZYG13:=ZYG11<20 AND REF(ZYG11,1)>20;
ZYG14:=COUNT(ZYG10=1,4)=3 AND ZYG10=0 AND O<C;
盈利小助手:=(ZYG14 AND (C-REF(C,1))/REF(C,1)>0.065)*10>=10;
XG:盈利小助手 OR ((C-REF(C,1))/REF(C,1)>0.065 AND (REF(ZYG13,1) OR REF(ZYG12,1)));