X_1:=IF(DATE<=1170417,1,1);
X_2:=AMOUNT/vol/100;
X_3:=IF(X_2>=LOW AND X_2<=HIGH,X_2,(CLOSE*2+OPEN+HIGH+LOW)/5);
X_4:=MAX(MAX(HIGH-LOW,Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X_5:=HHV(MA(VOL,5),4)<REF(HHV(MA(VOL,5),45),4)*1.2 OR HHV(MA(VOL,3),5)<REF(HHV(MA(VOL,3),40),5)*1.2 OR HHV(MA(VOL,4),6)<REF(HHV(MA(VOL,4),35),6)*1.2;
X_6:=BETWEEN(REF(CLOSE,1)/REF(CLOSE,2),0.91,0.995) AND X_1 AND REF(VOL,1)/REF(VOL,2)>1.8 AND BETWEEN(CLOSE-REF(CLOSE,2),0,0.3*REF(MA(X_4,2),1)*X_1) AND REF(OPEN<HIGH AND X_1,1) AND BETWEEN(REF(CLOSE/X_3,2),0.96,1.02) AND LOW/REF(LOW,1)>0.94 AND LOW<HIGH AND X_5 AND HIGH/CLOSE<1.018 AND INDEXC>MA(INDEXC,33);
买入:IF(X_6,30,0);