M:=55;
N1:=21;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IFF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IFF(MA(CLOSE,58),1,0);
VAR8:=EMA(IFF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IFF(VAR8>100,100,VAR8);
庄现身:=IFF(VAR9>-120,VAR9,0);
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
TJ:=((DIFF>=DEA) OR (DIFF>REF(DIFF,1)));
TJ1:=(DIFF>=0);
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
SJ:=(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR(CROSS(SK,SD)
AND SK<=-0.14 )OR(CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));
DATA:=5;
向上:=(ZIG(3,DATA)>REF(ZIG(3,DATA),1) AND REF(ZIG(3,DATA),1)<=REF(ZIG(3,DATA),2) AND REF(ZIG(3,DATA),2)<=REF(ZIG(3,DATA),3));
VAR0:=EMA(EMA(CLOSE,3),1);
控盘:=(VAR0-REF(VAR0,1))/REF(VAR0,1)*1000;
买追:=CROSS(控盘,0);
ZD1:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
ZK1:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
XG:向上 AND COUNT((TJ OR SJ),13)>=1 AND 庄现身>=0.01 AND (ZD1>=REF(ZD1,1) OR ZK1>REF(ZK1,1)) AND C<20 AND O<=ZD1*1.003 AND CAPITAL<10000000;