N:=38;
N1:=8;
N2:=3;
N3:=10;
PW:=VOL*(CLOSE-OPEN)/(CLOSE+OPEN);
PW1:=EMA(VOL*(CLOSE-OPEN)/(CLOSE+OPEN),N);
ME:=EMA(PW1,N1);
ME1:=MA(ME,N2);
ME2:=MA(ME,N3);
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
ZX:=(MA5+MA10)/2;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=CLOSE>REF((OPEN-CLOSE)/2+CLOSE,2);
买:=CROSS(CLOSE,ZX) AND (GD OR YB) AND QSXS;
买入易涨停:=买 AND MA5>REF(MA5,1);
XG:CROSS(ME,ME1) AND (CLOSE>OPEN AND (CLOSE-OPEN)/REF(CLOSE,1)*100>1.5);