通达信分享OBV副图公式
SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
IF(OBV<REF(OBV,1),OBV,DRAWNULL),COLOR40FF00,LINETHICK3;
IF(OBV>REF(OBV,1),OBV,DRAWNULL),COLOR0000FF,LINETHICK3;
MAOBV:MA(OBV,6),COLOR00FFFF,LINETHICK1;
MAOBV1:MA(OBV,13),COLORFFFF00,LINETHICK1;
MAOBV2:MA(OBV,22),COLORFFFFFF,LINETHICK1;
MAOBV3:MA(OBV,60),COLORFF00FF,LINETHICK1;
MAOBV120:MA(OBV,120),COLORRED,LINETHICK1;
MA5:=MA(C,5),COLORRED,LINETHICK1;
MA10:=MA(C,10),COLORRED,LINETHICK1;
MA20:=MA(C,60),COLORRED,LINETHICK1;
SAR1:=SAR.SAR,NODRAW;A1:=MA(C,20);
红:=IF(CLOSE>SAR1 AND INDEXC>MA(INDEXC,10),SAR1,DRAWNULL),CIRCLEDOT,COLORRED;资金异动线:=MA(VOL,135);
JSJ:=MAOBV1>REF(MAOBV1,1) AND MAOBV2>REF(MAOBV2,1) AND MAOBV3>REF(MAOBV3,1) AND A1>REF(A1,1) AND MA5>REF(MA5,1) AND V<资金异动线*1.5 AND C<REF(C,1)*1.2;
DRAWTEXT(OBV>MAOBV AND MAOBV1>MAOBV2 AND MAOBV>MAOBV1 AND MAOBV>MAOBV3 AND OBV>MAOBV AND OBV>REF(OBV,1) AND MAOBV>REF(MAOBV,1) AND JSJ,MAOBV120,'头'),COLOR00FFFF;