{说明:
低换手当换手率小于2%时,成交量柱用浅绿色显示
温和换手当换手率大于2%小于5%时,成交量柱用粉色
热换手当换手率大于5%小于11%时,成交量柱用黄颜色显示
烫手换手当换手率大于11%小于17%时,成交量柱用红颜色显示
高潮换手当换手率大于17% 成交量柱用绿颜色显示。}
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
成交量:VOL,VOLSTICK;
换手:VOL/CAPITAL*100,COLORYELLOW,NODRAW;
低换手小于2:换手<2,COLORFFFF00,NODRAW;
温和换手2到5:换手>2 AND 换手<5,COLORMAGENTA,NODRAW;
热换手5到11:换手>5 AND 换手<11,COLORYELLOW,NODRAW;
烫手换手11到17:换手>11 AND 换手<17,COLORRED,NODRAW;
高潮换手大于17:换手>17,COLORGREEN,NODRAW;
{五日均换手:MA(换手,5);
十日均换手:MA(换手,10);}
VAR0:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,VAR0*(HIGH-LOW),IF(CLOSE<OPEN,VAR0*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
主买占%:买盘/VOL*100,COLORMAGENTA,NODRAW;
主卖:=IF(CLOSE>OPEN,0-VAR0*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR0*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
主卖占%:-卖盘/VOL*100,COLORGREEN,POINTDOT,NODRAW;
震动调整:=(买盘 + 卖盘);
倍率:买盘/ABS(卖盘),COLORCYAN;
{画柱线}
STICKLINE(换手<2,0,VOL,3,0),COLORFF4400;
STICKLINE(换手<2,0,VOL,1.8,0),COLORFF6600;
STICKLINE(换手<2,0,VOL,1.2,0),COLORFF9900;
STICKLINE(换手<2,0,VOL,0.6,0),COLORFFCC00;
STICKLINE(换手<2,0,VOL,0.3,0),COLORGREEN;
STICKLINE(换手>2 AND 换手<5,0,VOL,3,0)COLORFF0033;
STICKLINE(换手>2 AND 换手<5,0,VOL,1.8,0)COLORFF0066;
STICKLINE(换手>2 AND 换手<5,0,VOL,1.2,0)COLORFF0099;
STICKLINE(换手>2 AND 换手<5,0,VOL,0.6,0)COLORFF00CC;
STICKLINE(换手>2 AND 换手<5,0,VOL,0.3,0)COLORFF00FF;
STICKLINE(换手>5 AND 换手<11,0,VOL,3,0)COLOR0035FF;
STICKLINE(换手>5 AND 换手<11,0,VOL,1.8,0)COLOR0064FF;
STICKLINE(换手>5 AND 换手<11,0,VOL,1.3,0)COLOR0093FF;
STICKLINE(换手>5 AND 换手<11,0,VOL,0.8,0)COLOR00C2FF;
STICKLINE(换手>5 AND 换手<11,0,VOL,0.3,0)COLOR00FFFF;
STICKLINE(换手>11 AND 换手<17,0,VOL,3,0),COLOR000055;
STICKLINE(换手>11 AND 换手<17,0,VOL,2,0),COLOR000077;
STICKLINE(换手>11 AND 换手<17,0,VOL,1.8,0),COLOR000099;
STICKLINE(换手>11 AND 换手<17,0,VOL,1.5,0),COLOR0000BB;
STICKLINE(换手>11 AND 换手<17,0,VOL,0.9,0),COLOR0000DD;
STICKLINE(换手>11 AND 换手<17,0,VOL,0.3,0),COLOR0000FF;
STICKLINE(换手>17,0,VOL,3,0),COLOR006000;
STICKLINE(换手>17,0,VOL,2.1,0),COLOR007500;
STICKLINE(换手>17,0,VOL,1.8,0),COLOR009100;
STICKLINE(换手>17,0,VOL,1.3,0),COLOR00A600;
STICKLINE(换手>17,0,VOL,0.8,0),COLOR00BB00;
STICKLINE(换手>17,0,VOL,0.3,0),COLOR00CC00;
DRAWICON(换手>25,VOL,15);
{成交量均线}
MAVOL100:MA(VOL,100),COLORWHITE;
{MAVOL10:MA(VOL,10),COLORYELLOW;};