量:vol,VOLSTICK;
{预测量}
VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
预测量:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2);
STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2),0,VAR1,4,1);
{量比}
TT:=IF(HOUR>12,(HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);
P:=IF(ISLASTBAR,BArslAST(TT=1),0);
T:=BacKSET(P,P+1);
VV:=IF(T=1,V,0);
量比:100*DYNAINFO(17)*(SUM(VV,TT)/TT)/(DYNAINFO(8)/FROMOPEN),;
换手率%:VOL/CAPITAL*100;
{主动买卖盘}
AA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
主动卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),COLORGREEN;
主动买盘%:主动买盘/VOL*100,COLOR6600FF,NODRAW;
主动卖盘%:ABS(主动卖盘/VOL*100),COLOR008800,NODRAW;
STICKLINE(VOL>0,0,VOL,0.8,0),COLOR008800;
STICKLINE(主动买盘>0,0,主动买盘,0.8,0),COLOR6600FF;