VAR2:=SUM(IF(VAR0 A2 AND C REF(C,1),VAR0,0),0);
VAR3:=SUM(IF(VAR0 =A2 AND C REF(C,1),VAR0,0),0);
VAR4:=SUM(IF(VAR0 =A2 AND C REF(C,1),VAR0,0),0);
BBD:=(VAR1-VAR2);
通吃:=BBD/(VAR1+VAR2+VAR3+VAR4)*100;
净流:=(VAR1-VAR2+VAR3-VAR4);
增仓:=净流/CAPITAL*100;
量比:=V*240/DYNAINFO(38);
买比:=(VAR1+VAR3)/(VAR1+VAR2+VAR3+VAR4)*100;
均价:=SUM(AMOUNT,0)/SUM(V,0)/100;
涨幅:=C/DYNAINFO(3) 1.05 AND C 均价*1.02 AND C MA.MA3#DAY *1.08 AND C REF(C,2)*1.02;
TJ0:=通吃 30 AND 通吃 REF(通吃,1) AND 增仓 0.1 AND 增仓 REF(增仓,1) AND 量比 5 AND 量比 REF(量比,1) AND (SUM(V,0)/BARSCOUNT(C)*240)/DYNAINFO(38) 2 AND 买比 70 AND 买比 REF(买比,1) AND 涨幅;
TJ1:=REF(TJ0,1);
涨停:FILTER(TJ1,60);