N:=20;
DD1:=MA(CLOSE,5);
DD2:=MA(CLOSE,10);
DD3:=MA(CLOSE,20);
DD4:=MA(CLOSE,30);
DD5:=MA(CLOSE,60);
DD6:=MA(CLOSE,120);
DD7:=MA(CLOSE,250);
涨停:=(C-REF(C,1))/REF(C,1)>=0.098;
VAR10:=C=HHV(C,120) AND 涨停 AND O
VAR11:=C=HHV(C,120) AND 涨停 AND O
VAR12:=C=HHV(C,30) AND 涨停 AND COUNT(涨停,20)<=3 AND COUNT(C=HHV(C,30),5)=1 AND LLV(L,105)=LLV(L,120);
VAR1:=VAR10 OR VAR11 OR VAR12;
XG:VAR1;