oo:=IF(CAPITAL=0,5000000,CAPITAL);
AA:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2));
卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- AA*(HIGH-LOW),0-VOL/2));
{-股票公式网站 }
主动买盘:SUM(买盘,1)/oo*100,LINETHICK0,COLORRED;
主动卖盘:SUM(卖盘,1)/oo*100,LINETHICK0,COLORGREEN;
STICKLINE(主动买盘>0,0,主动买盘,3,0),COLORRED;
STICKLINE(主动卖盘<0,0,主动卖盘,3,0),COLORGREEN;