VAR1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=IF(CLOSE>LLV(CLOSE,VAR2),1,0-1)*IF(VAR2,1,0-1);
VAR4:=IF(VAR3=0-1,1,0);
VAR5:=COUNT(VAR4=1,8)>3;
VAR6:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100;
VAR7:=DMA((OPEN+HIGH+LOW+CLOSE)/4,VOL/VAR6);
VAR8:=(CLOSE-VAR7)/VAR7*100<0-17;
VAR9:=(CLOSE-MIN(REF(CLOSE,5)*0.83,REF(CLOSE,21)*0.72))/CLOSE<0.05;
金牛:=VAR8 AND VAR9 AND VAR5;
金牛精确:=金牛>0 AND REF(金牛,1)=0;
金牛抄底:=COUNT(金牛精确,5) AND CLOSE>OPEN;
精确抄底:COUNT(金牛抄底,5)=1 AND 金牛抄底;