MAvol:=HHV(REF(VOL,1),3);MDAY:=BArslAST(MAVOL);条件:=VOL>MAVOL AND CLOSE>REF(CLOSE,MDAY+1);红球:COUNT(条件,2)=2;