换手率:=VOL/capital;
AA1:=REF(换手率,2)/REF(MA(换手率,5),2)>=2 AND REF(C,2)/REF(O,2)>=1 AND REF(C,1)/REF(C,2)>=1.004 AND C/REF(C,2)>=1.004;
BBB1:=REF(换手率,3)/REF(MA(换手率,5),3)>=2 AND REF(C,3)/REF(O,3)>=1 AND REF(C,1)/REF(C,3)>=1.004 AND C/REF(C,3)>=1.004;
BBB2:=REF(C,2)/REF(C,3)>=1.004 AND REF(C,1)/REF(C,3)>=1.004;
BB2:=BBB1 AND NOT(BBB2);
CCC1:=REF(换手率,4)/REF(MA(换手率,5),4)>=2 AND REF(C,4)/REF(O,4)>=1 AND REF(C,1)/REF(C,4)>=1.004 AND C/REF(C,4)>=1.004;
CCC2:=(REF(C,3)/REF(C,4)>=1.004 AND REF(C,2)/REF(C,4)>=1.004)
OR (REF(C,2)/REF(C,4)>=1.004 AND REF(C,1)/REF(C,4)>=1.004);
CC3:=CCC1 AND NOT(CCC2);
DDD1:=REF(换手率,5)/REF(MA(换手率,5),5)>=2 AND REF(C,5)/REF(O,5)>=1 AND REF(C,1)/REF(C,5)>=1.004 AND C/REF(C,5)>=1.004;
DDD2:=(REF(C,4)/REF(C,5)>=1.004 AND REF(C,3)/REF(C,5)>=1.004)
OR (REF(C,3)/REF(C,5)>=1.004 AND REF(C,2)/REF(C,5)>=1.004)
OR (REF(C,2)/REF(C,5)>=1.004 AND REF(C,1)/REF(C,5)>=1.004);
DD4:=DDD1 AND NOT(DDD2);
EEE1:=REF(换手率,6)/REF(MA(换手率,5),6)>=2 AND REF(C,6)/REF(O,6)>=1 AND REF(C,1)/REF(C,6)>=1.004 AND C/REF(C,6)>=1.004;
EEE2:=(REF(C,5)/REF(C,6)>=1.004 AND REF(C,4)/REF(C,6)>=1.004)
OR (REF(C,4)/REF(C,6)>=1.004 AND REF(C,3)/REF(C,6)>=1.004)
OR (REF(C,3)/REF(C,6)>=1.004 AND REF(C,2)/REF(C,6)>=1.004)
OR (REF(C,2)/REF(C,6)>=1.004 AND REF(C,1)/REF(C,6)>=1.004);
EE5:=EEE1 AND NOT(EEE2);
FFF1:=REF(换手率,7)/REF(MA(换手率,5),7)>=2 AND REF(C,7)/REF(O,7)>=1 AND REF(C,1)/REF(C,7)>=1.004 AND C/REF(C,7)>=1.004;
FFF2:=(REF(C,6)/REF(C,7)>=1.004 AND REF(C,5)/REF(C,7)>=1.004)
OR (REF(C,5)/REF(C,7)>=1.004 AND REF(C,4)/REF(C,7)>=1.004)
OR (REF(C,4)/REF(C,7)>=1.004 AND REF(C,3)/REF(C,7)>=1.004)
OR (REF(C,3)/REF(C,7)>=1.004 AND REF(C,2)/REF(C,7)>=1.004)
OR (REF(C,2)/REF(C,7)>=1.004 AND REF(C,1)/REF(C,7)>=1.004);
FF6:=FFF1 AND NOT(FFF2);
放量阳线买入:AA1 OR BB2 OR CC3 OR DD4 OR EE5 OR FF6;