DRAWGBK(CLOSE>0,STRIP(RGB(0,150,220),RGB(0,0,60),0));
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=(买量+卖量);
主买量:=买量/10000;
主卖:=卖量/10000;
净量:=买量-卖量;
买卖比:买量/卖量;
主力资金:SUM(净量,5),COLORYELLOW,LAYER2;
FILLRGN(主力资金,0,主力资金>=0,RGB(255,255,0)),PRECIS2,LAYER2;
基金:SUM(净量,10),LAYER3,COLOR3366FF;
FILLRGN(基金,0,基金>=0,RGB(255,130,0)),PRECIS2,LAYER3;
做空资金:SUM(净量,21),LINETHICK2,LAYER4,COLORFF6600;
FILLRGN(做空资金,0,做空资金>=0,RGB(10,120,180)),PRECIS2,LAYER4;
FILLRGN(做空资金,0,做空资金<0,RGB(250,0,10)),PRECIS2,LAYER4;
FILLRGN(基金,0,基金<0,RGB(180,18,120)),PRECIS2,LAYER3;
FILLRGN(主力资金,0,主力资金<0,RGB(10,80,18)),PRECIS2,LAYER2;
PARTLINE(主力资金,REF(主力资金,1)<主力资金 AND 主力资金<0,rgb(255,0,0)),LINETHICK3,LAYER2;
PARTLINE(基金,REF(基金,1)<基金 AND 基金<0,rgb(255,255,0)),LINETHICK3,LAYER1;