通达信热门振幅选股公式源码
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL);
虚换手:=VVOL/CAPITAL;
条件5:=IF(CAPITAL>20000000 AND 虚换手>=0.02,1,0);
条件6:=IF(CAPITAL>10000000 AND 虚换手>=0.03,1,0);
条件7:=IF(CAPITAL>3000000 AND CAPITAL<=10000000 AND 虚换手>=0.05,1,0);
条件8:=IF(CAPITAL<=3000000 AND 虚换手>=0.7,1,0);
条件C:=条件5=1 OR 条件6=1 OR 条件7=1 OR 条件8=1 OR DYNAINFO(17)>5;{换手条件}
条件D:=DYNAINFO(13)>=0.07;{震幅条件}
条件E:=DYNAINFO(14)>=0.02;{幅条件}
超大阳线:= L=H;{一字涨停}
超大阳线数:=COUNT(超大阳线,5)<3;{5天内一字涨停个数}
热门振幅: 条件C AND 条件D AND 条件E AND 超大阳线数 AND DYNAINFO(17)>0 AND BARSCOUNT(C)>=250;
赞 (0)