以下是通达信OBV量能成交量指标(副图 不加密)(无源码的请下载附件导入)
OBV与VOL-TDX的结合,指标不是自己原创,论坛下载后改动了下。量能柱中出现黄色时可以卖进,黄色消失卖出。OBV的运行是以N字的形式,出现黄色就是突破前高,OBV的运用可以**,平时多用用OBV其实比VOL来的更直观。
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),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL5:MA(VOLUME,5),COLORWHITE;
MAVOL10:MA(VOLUME,10);
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,VOLUME,0.02,0),COLORYELLOW;
71577465.jpg
7233043.jpg
|