发一个 自己常用的 分时副图 【分时资金】
{分时资金}
{副 OK 可以显示资金区域红绿}
资金流入: 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;
资金 :=资金流入+资金流出,COLOR888888;
WW:=资金>0;{WWW.70822.COM}
QQ:=资金<0;
STICKLINE(资金 AND WW,资金,0,0.0011,-1),COLORRED;
STICKLINE(资金 AND QQ,资金,0,0.0011,-1),COLORCYAN;
资金差:资金流入+资金流出,COLOR555555;{画边缘线}
换手:VOL/CAPITAL*100;
主动买盘:BUYVOL ,COLORLIRED,NODRAW;
主动卖盘:SELLVOL,COLORLIBLUE,NODRAW;
买卖总量:BUYVOL+SELLVOL,COLORMAGENTA,NODRAW;
主动买盘%:=BUYVOL/买卖总量*100;
主动卖盘%:=SELLVOL/买卖总量*100;
DRAWRECTREL(165,30,405,118,RGB(0,0,255));
DRAWRECTREL(165,30,165+2.4*CONST(主动买盘%),118,RGB(255,0,0));
DRAWTEXT_FIX(1,0.058,0.03,0,STRCAT(STRCAT('主动买盘',CON2STR(主动买盘%,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.41,0.03,0,STRCAT(STRCAT('主动卖盘',CON2STR(主动卖盘%,2)),'%')),COLORGREEN;
0,COLOR777777;
p201991920534611382.jpg
|