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;
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;