M1:=MA(C,5)>MA(C,60);
Q:=crOSS(SMA(CLOSE,3,1),SMA(LOW,6,1));
M2:=MA(C,60)>MA(C,350);
Q1:=(SMA(HIGH,21,8)*1.05)*1.05;
Q2:=IF(Q,Q1,SMA(LOW,5,1));
M3:=MA(C,360)>MA(C,1000);
Q3:=CROSS(SMA(CLOSE,2,1),(SMA(HIGH,21,2)*1.05));
Q4:=IF(Q3,(SMA(HIGH,21,2)*1.05)*1.10,(SMA(LOW,21,2)*0.95));
Q5:=Q2>SMA(LOW,5,1) AND CROSS(C,REF(MA(C,13),13/2+1)) AND vol>0;
Q6:=M2 AND REF(H/O<1.02,1) AND REF(C<O,1) ;
抓牛专用:=Q4>(SMA(LOW,21,2)*0.95) OR Q5 AND Q6 AND M1;
XG:IF(抓牛专用,1,0);