最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 把OBV顶底背离公式中的“买入”做个条件选股公式

    正文概述    2024-04-14 08:59:04  

    九毛八公式指标

    OBV:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND OBV>=B2 OR B2=CMAX AND B3=CMIN AND OBV>=B1 OR B3=CMAX AND OBV>=B1 AND OBV>=B2,B1,OBV,3,0),COLORMAGENTA; 变盘:STICKLINE(OBV=CMAX AND B1=CMIN,B2,OBV,1,0),COLORWHITE; DRAWTEXT(变盘,OBV,'变盘'),COLORWHITE; 下跌:=STICKLINE(OBV=CMIN AND (B1=B2 OR (B2=CMIN AND B1<=B3 OR B3=CMIN AND B1<=B2) AND B2=B1,B1,B2,1,0),COLORRED; DRAWTEXT(买入,OBV,'买入'),COLORRED; 抛售:STICKLINE(B1=CMAX AND OBVB3 OR B3=CMAX AND B1>B2) AND B2>=B4 AND OBV 18) AND (COUNT((CLOSE < REF(CLOSE,1)),3) = 3)) AND ((COUNT((OBV > REF(OBV,1)),30) > 18) AND (COUNT((OBV > REF(OBV,1)),3) = 3))) AND ((COUNT((VOL > REF(VOL,1)),30) > 3) AND ((VOL / CAPITAL) <= (10 / 100)))),OBV,'买盘较强'); DRAWTEXT(((((COUNT((CLOSE > REF(CLOSE,1)),30) > 18) AND (COUNT((CLOSE > REF(CLOSE,1)),3) = 3)) AND ((COUNT((OBV > REF(OBV,1)),30) > 18) AND (COUNT((OBV > REF(OBV,1)),3) = 3))) AND ((COUNT((VOL > REF(VOL,1)),30) > 3) AND ((VOL / CAPITAL) <= (10 / 100)))),OBV,'买盘逐渐加强');} DRAWTEXT((((COUNT((CLOSE > REF(CLOSE,1)),30) > 18) AND (COUNT((CLOSE > REF(CLOSE,1)),3) = 3)) AND ((COUNT((OBV < REF(OBV,1)),30) > 18) OR (COUNT((OBV < REF(OBV,1)),3) = 3))),OBV,'买盘无力'); DRAWTEXT((CROSS(OBV,0) AND (COUNT((REF(OBV,1) < 0),3) = 3)),OBV,'由负转正买入'); DRAWTEXT((CROSS(0,OBV) AND (COUNT((REF(OBV,1) > 0),3) = 3)),OBV,'由正转负卖出。'); DRAWTEXT(((HHV(HIGH,20) = HIGH) AND NOT((HHV(OBV,20) = OBV))),OBV,'顶背离卖'),COLORGREEN; DRAWTEXT(((LLV(LOW,20) = LOW) AND NOT((LLV(OBV,20) = OBV))),OBV,'底背离买'),COLORRED; DRAWTEXT((((ABS((OBV - REF(OBV,1))) / ABS(MA(OBV,5))) > 0.07) AND (OBV > REF(OBV,1))),OBV,'异常');

    公式模块:

    obv:=sum(if(c>ref(c,1),vol,if(c<ref(c,1),-VOL,0)),0);

    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); 买入:b1=cmin and obv>=b2 or (b2=cmin and b1<=b3 or b3=cmin and b1<=b2) and b2<b4 and obv>=b1;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 把OBV顶底背离公式中的“买入”做个条件选股公式 加入收藏