Obv指数创选股历史新高

{顶部和底部偏离最佳值}

OBV:SUM(IF(CLOSE & gt;REF(CLOSE,1),VOL,IF(CLOSE & lt;REF(CLOSE,1),-VOL,0)),0),LINETHICK2,COLORGREEN

B1:=REF(OBV,1);

B2:=REF(OBV,2);

B3:=REF(OBV,3);

B4:=REF(OBV,4);

CMAX:=MAX(MAX(MAX(OBV,B1),B2),B3);

CMIN:=MIN(MIN(MIN(OBV,B1),B2),B3);

持股:= stickline(obv = Cmax and(b 1 > = B2或b 1 & gt;=B3)或B1=CMAX和(B2=CMIN或B3=CMIN)以及OBV & gt;=B2或

B2=CMAX和B3=CMIN和OBV & gt;=B1或B3=CMAX和OBV & gt;=B1且OBV & gt;=B2,B1,OBV,3,0),COLORMAGENTA

换盘:stickline (OBV = Cmax和B1 = CMIN,B2,OBV,1,0),Colorwhite

DRAWTEXT (OBV,“可变磁盘”),COLORWHITE

down:= stickline(obv = cmin and(b 1

B2=CMIN和B3=CMAX和OBV & lt;B1或B3=CMIN和OBV & lt;B1和OBV & lt;B2,B1,OBV,8,1),COLOR00FF00

STICKLINE(B1=CMAX和OBV=CMIN,B2,OBV,3,0),COLOR009900

购买:stickline (b1 = cmin和obv > =B2或(B2=CMIN和b 1 & lt;=B3或

B3=CMIN和b 1 & lt;=B2)和B2 & lt;B4和OBV & gt;=B1,B1,B2,1,0),COLORRED

DRAWTEXT(购买,OBV,'购买'),颜色为红色;

销售:粘附线(b1 = Cmax和obv

B3=CMAX和b 1 & gt;B2)和B2 & gt;=B4和OBV & lt;B1,B1,B2,1,0),COLORCYAN

DRAWTEXT(出售,OBV,'出售'),COLORCYAN

V1:HHV(OBV,0);

V3:=HHV(OBV,5);

IF(OBV=V3,OBV,DRAWNULL),COLORYELLOW,LINETHICK3

IF(OBV=V1,OBV,DRAWNULL),COLORRED,LINETHICK3

马(,7),色白;

马(,21),颜色为蓝色;

{ DRAWTEXT(((((COUNT((CLOSE & lt;REF(CLOSE,1)),30)>18)和(COUNT((CLOSE & lt;REF(CLOSE,1),3) = 3))和((COUNT((OBV & gt;REF(OBV,1)),30)>18)和(计数((OBV & gt;REF(OBV,1),3) = 3))和((COUNT((VOL & gt;REF(VOL,1)),30)>3)和((VOL/CAPITAL)& lt;= (10/100))、obv、'强买');

DRAWTEXT(((((COUNT((CLOSE & gt;REF(CLOSE,1)),30)>18)和(计数((CLOSE & gtREF(CLOSE,1),3) = 3))和((COUNT((OBV & gt;REF(OBV,1)),30)>18)和(计数((OBV & gt;REF(OBV,1),3) = 3))和((COUNT((VOL & gt;REF(VOL,1)),30)>3)和((VOL/CAPITAL)& lt;= (10/100))),obv,'买盘逐渐加强');}

DRAWTEXT((((COUNT((CLOSE & gt;REF(CLOSE,1)),30)>18)和(计数((CLOSE & gtREF(CLOSE,1)),3) = 3))和((COUNT((OBV & lt;REF(OBV,1)),30)>18)或(计数((OBV & lt;Ref (OBV,1),3) = 3),OBV,'买盘疲软');

DRAWTEXT((CROSS(OBV,0)和(COUNT((REF(OBV,1)& lt;0),3) = 3)),OBV,‘从负到正’买入);

DRAWTEXT((CROSS(0,OBV)和(COUNT((REF(OBV,1)>;0),3) = 3),OBV,“从正卖出到负卖出。”);

Drawtext ((HHV(高,20) =高)和not ((HHV (OBV,20) = OBV))、OBV、“顶背离卖出”)、COLORGREEN

Drawtext ((LLV(低,20) =低)和not ((LLV (obv,20) = obv)),obv,'底背离买入'),COLORRED

DRAWTEXT((((ABS((OBV - REF(OBV,1))) / ABS(马(OBV,5))))& gt;0.07)和(OBV & gt;Ref (obv,1)),obv,'异常');

异常选股:

OBV:= SUM(IF(CLOSE & gt;REF(CLOSE,1),VOL,IF(CLOSE & lt;REF(CLOSE,1),-VOL,0)),0);

例外:((ABS ((obv-ref (obv,1)))/ABS (ma (obv,5))) > 0.07)和(OBV & gt;REF(OBV,1));

底部偏差选股:

OBV:= SUM(IF(CLOSE & gt;REF(CLOSE,1),VOL,IF(CLOSE & lt;REF(CLOSE,1),-VOL,0)),0),LINETHICK2,COLORGREEN

Drawtext ((LLV(低,20) =低)和not ((LLV (obv,20) = obv)),obv,'底背离买入');