多:=IF(C>REF(C,1),V,0)/100;
空:=IF(C< REF(C,1),V,0)/100;
主力:EMA(MA(多,3),3),COLORRED,LINETHICK2;
散户:EMA(MA(空,3),10),COLORGREEN,LINETHICK2;
STICKLINE(主力,主力,0,3,0),COLORRED;
STICKLINE(主力>0 AND 主力>REF(主力,1),主力*4/5,0,3,0),COLOR10D3FF;
STICKLINE(主力>0 AND 主力>REF(主力,1),主力*2/5,0,3,0),COLOR10FFFF;
STICKLINE(主力>0 AND 主力< REF(主力,1),主力,0,3,0),COLORBROWN;
STICKLINE(主力>0 AND 主力< REF(主力,1),主力*4/5,0,3,0),COLORCA3DB5;
STICKLINE(主力>0 AND 主力< REF(主力,1),主力*2/5,0,3,0),COLORFF99CC;
STICKLINE(散户,散户*(-1),0,3,0),COLOR66FF00;
STICKLINE(散户,散户*(-0.85),0,3,0),COLOR66DD00;
STICKLINE(散户,散户*(-0.75),0,3,0),COLOR66BB00;
STICKLINE(散户,散户*(-0.65),0,3,0),COLOR669900;
STICKLINE(散户,散户*(-0.55),0,3,0),COLOR667700;
STICKLINE(散户,散户*(-0.45),0,3,0),COLOR665500;
STICKLINE(散户,散户*(-0.35),0,3,0),COLOR663300;
DRAWTEXT(crOSS(主力,散户),散户,'金叉'),COLORWHITE;
AA:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE< OPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED;
买:=买盘/10000,COLORRED,NODRAW;
卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE< OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
卖:=卖盘/10000,COLORGREEN,NODRAW;
买卖比:-买/卖,COLORMAGENTA,NODRAW;
单日量比:V/REF(V,1),COLORMAGENTA,NODRAW;
换手率%:IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FINANCE(7)/100),COLORYELLOW,NODRAW;