DRAWGBK(c>0),color000000;
EPSL:=0.0001;
ZZ:=(C+H+L)/3;
TJ0:=ZZ>MAX(C,O) OR ZZ
TJ2:=H=L AND C
V0L:=IF(1,V,AMOUNT);
ZL:=2*(H-L)+ABS(C-O)+3*EPSL;
EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
JGL_DTC:=(IF(TJ0 AND 1,4/3*(C-(H+L)/2)+ABS(C-O),C-OPEN)+EE)/ZL;
主动买:V0L*(1+JGL_DTC)/2,COLOR5050FF,LINETHICK0;
主动卖:V0L*(1-JGL_DTC)/2,COLORCYAN,LINETHICK0;
买卖差:主动买-主动卖,colorgreen,LINETHICK0;
占比:abs(买卖差/ma(买卖差,20)),LINETHICK0;
JDZ:=ABS(买卖差);
stickline(买卖差>0,0,买卖差,8.10,0),COLOR0000CC;
stickline(买卖差<0,0,买卖差,8.10,0),colorgreen;
资金异动:VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(资金异动>100 ,0,买卖差,2.9,1),COLORYELLOW;