volUME:=VOL;
VAR18:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
ACB18:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAR18),0);
ACB28:=EMA(ACB18,3)-MA(ACB18,9);
ACB38:=EMA(IF(ACB28>0,ACB28,0),3);
MAC38:=MA(C,3);
升势动能:=ACB38>REF(ACB38,1) AND MAC38>REF(MAC38,1);
钱1:=BARSLASTCOUNT(升势动能)=2;
钱2:=BARSLASTCOUNT(升势动能)=3;
钱3:=BARSLASTCOUNT(升势动能)=4;
钱4:=BARSLASTCOUNT(升势动能)=5;
钱5:=BARSLASTCOUNT(升势动能)=6;
钱6:=BARSLASTCOUNT(升势动能)=7;
钱7:=BARSLASTCOUNT(升势动能)=8;
钱8:=BARSLASTCOUNT(升势动能)=9;
钱9:=BARSLASTCOUNT(升势动能)=10;
红钻:钱1 OR 钱2 OR 钱3 OR 钱4 OR 钱5 OR 钱6 OR 钱7 OR 钱8 OR 钱9;