编写要求:
虚拟量是昨天成交量3倍,价上穿60日线的选股公式。
www.gszx.com.cn网解答:
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/REF(VOL,1)>3 AND CROSS(C,MA(C,60));