请老师帮忙把以下指标公式改写一个通达信成交量出现黄色主体选股,连续一天显示1两天显示2依次累加 谢谢

2024-11-01 20:23:47
推荐回答(1个)
回答1:

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);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=MA(C,3);
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,OBV3,0.2,0),COLORYELLOW;
次数:BARSLASTCOUNT(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1));