指标是根据OBV量能累计修改,当量能持仓上穿MA20线是强势区,反之弱势,看分时趋势还是不错的。
VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
PY:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
BB1:=PY-REF(PY,1);量能持仓:SUM(BB1,0)COLORMAGENTA;MA1:MA(量能持仓,20),COLORBROWN,LINETHICK2;STICKLINE(BB1 =0,BB1+量能持仓,量能持仓,1.0,0),COLORRED;
STICKLINE(BB1 0,量能持仓+BB1,量能持仓,1.0,0),COLORCYAN;