XG1:=SMA(HIGH,21,2)*1.05;
XG2:= O>REF(C,1);
XG3:= C>=REF(C,1)*1.08;
XG4:= XG1 AND XG2 AND XG3;
XG5:=(C-MA(C,30))/MA(C,30)*100;
XG6:=crOSS(0,(C-MA(C,5))/MA(C,5)*100);
XG7:=MA(C,10)>REF(MA(C,10),1);
XG8:=XG6 AND XG5 AND XG7;
XG9:=FILTER(XG8,10);
XG10:=REF(MA(CLOSE,13),13/2+1);
XG11:=CROSS(SMA(CLOSE,2,1),SMA(LOW,5,1));
XG12:=SMA(HIGH,21,2)*1.05*1.05;
XG13:=IF(XG11,XG12,SMA(LOW,5,1));
XG14:=CROSS(SMA(CLOSE,2,1),XG1);
XG15:=IF(XG14,SMA(HIGH,21,2)*1.05*1.1,SMA(LOW,21,2)*0.95);
XG16:=XG13>SMA(LOW,5,1) AND CROSS(CLOSE,XG10) AND vol>0;
XG17:=REF(HIGH/OPEN<1.02,1) AND REF(CLOSE<OPEN,1);
神探牛股选:XG15>SMA(LOW,21,2)*0.95 OR XG16 AND XG17;