联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

Q Q:396950280

网址:www.yzhibiao.com

搜索 Search

通达信精进终极-OBV-副图指标公式

2015-1-22 15:16:53点击:

 

VA:=IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL,-VOL/CAPITAL);
OBV1:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);

HPB:REF(HHV(OBV1,20),1),COLORBLUE,DOTLINE;
LPB:REF(LLV(OBV1,20),1),COLORBLUE,DOTLINE;
MPB:(HPB+LPB)/2,COLORLIBLUE,DOTLINE;

{以下划变色线};

A0:=OBV1;
A1:EMA(A0,14),COLORYELLOW,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
G1:=BARSLAST(CROSS(A1X,0));
买入止损:=REF(A0,G1),COLORWHITE,LINETHICK1;
买入盈利:(A0-买入止损)/买入止损*100,NODRAW;
IF(A1X>=0,买入止损,DRAWNULL),COLORRED,LINETHICK2;
IF(A1X>=0,A1,DRAWNULL),COLORRED,LINETHICK2;