通达信精进终极OBV指标公式
2020/6/11 17:54:05
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;
看股 吧公式 www.kangub a.com
其它股票公式列表