通达信OBV的另类应用:辅助判断趋势 副图指标

[复制链接]
查看136 | 回复0 | 2021-8-20 01:34:38 | 显示全部楼层 |阅读模式

以下是通达信OBV的另类应用:辅助判断趋势 副图指标(无源码的请下载附件导入)

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
 OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
 MAOBV:EMA(OBV,30);
 IF(MAOBV>=REF(MAOBV,1),MAOBV,DRAWNULL),COLORRED,LINETHICK2;
 IF(MAOBV<REF(MAOBV,1),MAOBV,DRAWNULL),COLORGREEN,LINETHICK2;
 EMA(OBV,5),COLORGREEN;
 IF(EMA(OBV,5)>=REF(EMA(OBV,5),1),EMA(OBV,5),DRAWNULL),COLORRED;
 EMA(OBV,10),COLORGREEN;
 IF(EMA(OBV,10)>=REF(EMA(OBV,10),1),EMA(OBV,10),DRAWNULL),COLORRED;
 EMA(OBV,15),COLORGREEN;
 IF(EMA(OBV,15)>=REF(EMA(OBV,15),1),EMA(OBV,15),DRAWNULL),COLORRED;
 EMA(OBV,20),COLORGREEN;
 IF(EMA(OBV,20)>=REF(EMA(OBV,20),1),EMA(OBV,20),DRAWNULL),COLORRED;
 EMA(OBV,25),COLORGREEN;
 IF(EMA(OBV,25)>=REF(EMA(OBV,25),1),EMA(OBV,25),DRAWNULL),COLORRED;

635577447.png

635577447.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则