AT:=IF(DATE>1110208,1,1);
VAR51:=MA(CLOSE,27)*AT;
VAR52:=(CLOSE-VAR51)/VAR51*100*AT;
VARAA:=MA(VAR52,2);
VARBB:=BArslAST(crOSS(-10,VARAA)=1)*AT;
VARCC:=BARSLAST(CROSS(VARAA,10)=1)*AT;
VARDD:=VARAA<-10 AND VARBB>3*AT;
VAREE:=VARAA>10 AND VARCC>3*AT;
坑:=IF(VARDD,VARAA,0);
金坑:=REF(坑,1)<0;
等建仓:金坑 AND 坑=0;