股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信新OBV副图指标


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-9 11:59:26

以下是通达信新OBV副图指标

通达信新OBV副图指标

源码

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),LINETHICK2,COLOR00FF00;
IF(OBV>=REF(OBV,1), OBV ,DRAWNULL),LINETHICK2,COLORRED;
MAOBV:MA(OBV,30),COLOR0000FF,LINETHICK1;
MAOBV1:MA(OBV,13),COLORFF00FF,LINETHICK1;
MAOBV2:MA(OBV,5),COLORFFFFFF,LINETHICK1;
TJ1:=CROSS(OBV,MAOBV2) AND MAOBV2>REF(MAOBV2,1) AND OBV/MAOBV<1.021;
TJ11:=FILTER(TJ1,5);
TJ2:=FILTER(CROSS(MAOBV2,MAOBV1),5);
TJ3:=COUNT(CROSS(OBV,MAOBV2) OR CROSS(OBV,MAOBV1)
OR CROSS(OBV,MAOBV),5)>2 AND MAOBV>REF(MAOBV,1);
TJ33:=FILTER(TJ3,5);
DRAWICON(TJ11,MAOBV,23);
DRAWICON(TJ33,MAOBV,26);
DRAWICON(TJ2,MAOBV1,25);
QC:=FILTER(COUNT(TJ11 OR TJ33 OR TJ2,3)>=2,3);
DRAWTEXT(QC,OBV,'全仓'),COLORFF00FF;
STICKLINE(QC,MAOBV,OBV,3,0),COLOR0000FF;





回复

举报

GMT+8, 2025-1-23 17:26

快速回复 返回顶部 返回列表