{均线上} tt:=BARSCOUNT(C); CC:=CLOSE; zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt); zz1:=BETWEEN(C/zz,1.05,0.95); 均线:=IF(zz1=0,MA(C,TT),zz); a:=if(c>=均线,1,0); 均线上:=COUNT(a=1 ,0 ); 均线下:=COUNT(a=0 ,0 ); 均线上占:=均线上/(均线上+均线下)*100>=95; 涨幅:=(C-DYNAINFO(3))/DYNAINFO(3)*100<=7; 个股趋势:=3*SMA((CLOSE-LLV(LOW,0))/(HHV(HIGH,0)-LLV(LOW,0))*10,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,0))/(HHV(HIGH,0)-LLV(LOW,0))*10,5,1),3,1); 大盘趋势:=3*SMA((INDEXC-LLV(INDEXL,0))/(HHV(INDEXH,0)-LLV(INDEXL,0))*10,5,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,0))/(HHV(INDEXH,0)-LLV(INDEXL,0))*10,5,1),3,1); a:=if(个股趋势>=大盘趋势,1,0); 上趋势:=COUNT(a=1 ,0 ); 下趋势:=COUNT(a=0 ,0 ); 趋势上占:=上趋势/(上趋势+下趋势)*100>55; 剔除:=NOT(STRFIND(stkname,'ST',1)>0) AND NOT(STRFIND(stkname,'S',1)>0) AND NOT(DYNAINFO(4)=0); 均线上占 AND 涨幅 AND 趋势上占 AND 剔除; |
