资金流入:SUM(IF(C>REF(C,1),C*V,0),FROMOPEN),STICK,COLORRED}{,NODRAW};
资金流出:-SUM(IF(C<REF(C,1),C*V,0),FROMOPEN),STICK,COLORGREEN}{,NODRAW};
进出:资金流入+资金流出,COLORYELLOW;
DRAWBAND(进出,RGB(160,0,80),0,RGB(0,100,0));
WW:=进出>0;
QQ:=进出<0;
STICKLINE(进出 AND WW,进出,0,0.0011,0),COLORRED;
STICKLINE(进出 AND QQ,进出,0,0.0011,0),COLORCYAN;
资金比:=进出/SUM(C*V,FROMOPEN)*100;
量比:=V/REF(MA(V,5),1),COLORLIRED;
{价位关系}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORCC9900;
支撑:L1+P1*0.5/8,COLOR3366FF;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
现价:CLOSE,COLORWHITE;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-Abs((资金比-100)/2));
DRAwrECTREL(418,30,588,118,RGB(0,75,200));{蓝条}
DRAWRECTREL(418,30,418+1.8*CONST(资金流量比),118,RGB(200,50,0));{红条}
DRAWTEXT_FIX(1,0.27,0.03,0,STRCAT(STRCAT('资金流量比:',CON2STR(资金流量比,2)),'%进')),COLORYELLOW;
DRAWTEXT_FIX(1,0.60,0.03,0,STRCAT(STRCAT('出:',CON2STR(100-资金流量比,2)),'%')),COLORYELLOW;