{R1剔除成交量过大}
TMP1_VOL_RATE:=0.5;{成交量比例}
TMP1_MA100:=MA(VOL, 100);{百日均成交量}
R1:=IF((DYNAINFO(8)/TMP1_MA100<=TMP1_VOL_RATE),1,0);{现量/百日均量}
{R4剔除涨幅过大}
TMP4_INCREASE:=0.03;{涨幅限制}
R4:=IF(((DYNAINFO(7)-DYNAINFO(3))/DYNAINFO(3)<=TMP4_INCREASE),1,0);{(现价-前收盘价)/前收盘价}
{R5剔除停牌股}
R5:=IF((DYNAINFO(4)>0),1,0);{开盘价}
{R6剔除实体线过大}
TMP6_PRICE_RATE:=0.3;{实体大小限制}
TMP6_SUB:=ABS(DYNAINFO(4)-DYNAINFO(7));{开盘价-现价}
TMP6_DIV:=TMP6_SUB/DYNAINFO(4);{差价/开盘价}
R6:=IF ((TMP6_DIV<=TMP6_PRICE_RATE),1,0);
{R7剔除大盘股}
TMP7_PRICE:=500;{单位:亿}
R7:=IF((FINANCE(40)<=TMP7_PRICE*100000000),1,0);
{R8剔除次新股}
TMP8_DAYS:=100;
R8:=IF((FINANCE(42)>TMP8_DAYS),1,0);{上市天数}
{总结果}
IF ((R4 AND R5 AND R6 AND R7 AND R8), 1, 0);
时间: 2024-10-25 18:38:36