A1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,A1*(HIGH-LOW),IF(CLOSE<OPEN,A1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED NODRAW;
主动卖盘:=IF(CLOSE>OPEN,A1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,A1*(HIGH-LOW),VOL/2)),COLORGREEN NODRAW;
买量L1:SUM((主动买盘-主动卖盘)/CAPITAL,1)*1000;
L2:SUM((主动买盘-主动卖盘)/CAPITAL,2)*1000;
L3:SUM((主动买盘-主动卖盘)/CAPITAL,3)*1000;
L4:SUM((主动买盘-主动卖盘)/CAPITAL,4)*1000;
L5:SUM((主动买盘-主动卖盘)/CAPITAL,5)*1000;
L6:SUM((主动买盘-主动卖盘)/CAPITAL,6)*1000;
L7:SUM((主动买盘-主动卖盘)/CAPITAL,7)*1000;
L8:SUM((主动买盘-主动卖盘)/CAPITAL,8)*1000;
L9:SUM((主动买盘-主动卖盘)/CAPITAL,9)*1000;
L10:SUM((主动买盘-主动卖盘)/CAPITAL,10)*1000;
L11:SUM((主动买盘-主动卖盘)/CAPITAL,11)*1000;
L12:SUM((主动买盘-主动卖盘)/CAPITAL,12)*1000;
L13:SUM((主动买盘-主动卖盘)/CAPITAL,13)*1000;
L14:SUM((主动买盘-主动卖盘)/CAPITAL,14)*1000;
L15:SUM((主动买盘-主动卖盘)/CAPITAL,15)*1000;