精进终极-OBV-副图
为配合“精进终极双周期主图”,发《精进终极OBV副图》。研判一目了然,闲话不多讲!
上图、源码附件,喜欢的顶贴,加分!!!
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;
141633805.jpg
|