stICKLINE(1,1,1.5,5,0),COLOR00FF00;
A1:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
买:=IF(CLOSE>OPEN,A1*(HIGH-LOW),IF(CLOSE<OPEN,A1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖:=IF(CLOSE>OPEN,A1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,A1*(HIGH-LOW),VOL/2));
量:=(买-ma(买,20))/MA(买,20);
量能:=IF(量>0,量,0),COLORYELLOW,NODRAW;
累计量能:=SUM(量能,5)/1,COLORRED,NODRAW;
STICKLINE(量能>0,1.1,1.4,2,0),COLORFF00FF;
STICKLINE(量能=0,1.1,1.4,2,0),COLORA53412;
周期:=SUMBARS(VOL,CAPITAL);
换手率:=VOL/CAPITAL*100;
总换手率:=SUM(换手率,周期);
ZP:=总换手率/周期;
两天平均换手:=MA(换手率,3);
换手乖离:(两天平均换手-ZP)/ZP,COLOR0000FF LINETHICK2;
DRAWICON(换手乖离>1.5,0.8,23);