源码
//DRAWGBK(V>1,STRIP(RGB(60,100,255),RGB(180,180,255),1));
VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:VOL;
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),
IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))*1.5,
colorred,linethick2;
主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2))*1.5,COLOR00FF00,linethick2;
STICKLINE(VOL>0,VOL,0,4,1);
STICKLINE(主买>0,0,主买,4,0);
STICKLINE(主卖<0,0,主卖,4,0);
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,colorred;
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLOR00ff00;
进出量:=买量+卖量,COLOR00FFFF;
STICKLINE(主买>0,0,主买,0.3,0),COLOR9933FF;
STICKLINE(主买>0,0,主买,8,0),COLOR000099;
STICKLINE(主买>0,0,主买,6,0),COLOR0000CC;
STICKLINE(主买>0,0,主买,4,0),COLOR0033FF;
STICKLINE(主买>0,0,主买,2,0),COLOR0066FF;
STICKLINE(主买>0,0,主买,1,0),COLOR0000FF;
STICKLINE(主卖<0,0,主卖,0.3,0),COLOR66CC33;
STICKLINE(主卖<0,0,主卖,8,0),COLOR009900;
STICKLINE(主卖<0,0,主卖,6,0),COLOR00CC00;
STICKLINE(主卖<0,0,主卖,4,0),COLOR33FF00;
STICKLINE(主卖<0,0,主卖,2,0),COLOR00FF00;
STICKLINE(主卖<0,0,主卖,1,0),COLOR00FF00;
N:=4;
净流入:SUM(进出量,N),LINETHICK0,Color00FFFF;