通达信OBV战法指标公式
M:=30;N:=10;VA:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);obv1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);MA30:=MA(OBV,M);DRAWTEXT_FIX(ISLASTBAR,0,0.01,0,'前面的能量趋势向上是吸货铺垫,买入有肉吃。'),COLORCYAN;XDF:crOSS(C,MA(C,30)) AND OBV1>MA30 AND MA(C,05)>MA(C,10) AND DYNAINFO(37)>0.01AND C>MA(C,5) ,NODRAW;多空比例净额:=((C-L)-(H-C)) /( H-L);复杂版OBV:REF(OBV,1)+VOL*多空比例净额,COLORGREEN;DRAWTEXT(XDF,MA30*0.920,' 暴利'),COLORYELLOW;DRAWBAND(MA30,RGB(0,0,80),复杂版OBV,RGB(160,0,000));OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);能量趋势线:MA(OBV,M),COLORMAGENTA,LINETHICK2;