VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
VAR3:=CROSS(EMA(C,19),EMA(C,7));
VAR4:=CROSS(EMA(C,7),EMA(C,19));
Z1:=L=LLV(L,BARSLAST(VAR3)+1);
Z2:=LLV(L,BARSLAST(VAR3)+1);
Z3:=H=HHV(H,BARSLAST(VAR4)+1);
Z4:=HHV(H,BARSLAST(VAR4)+1);
VARA:=DRAWLINE(Z1,Z2,Z3,Z4,0);
Y1:=H=HHV(H,BARSLAST(VAR4)+1);
Y2:=HHV(H,BARSLAST(VAR4)+1);
Y3:=L=LLV(L,BARSLAST(VAR3)+1);
Y4:=LLV(L,BARSLAST(VAR3)+1);
VARB:=DRAWLINE(Y1,Y2,Y3,Y4,0);
X1:=LLV(VAR2,2)=LLV(VAR2,7) ;
X2:=COUNT(VAR2 0,2);
X3:=CROSS(VAR2,MA(VAR2,2));
X4:=REF(VARB,1) REF(VARB,2);
X5:=VARA REF(VARB,1);
买进:=(X1 AND X2 AND X3) AND X4 AND X5;
TJ:=IF(VARB REF(VARB,1) AND VARB=VARA,1,0);
XG:REF(TJ,1)=0 AND TJ