{使用说明:红色代表买量,绿色是卖量。看对比就知道当天多空力度。在多头趋势成立后,每当量柱冲破均量线,且买方大优,则此时出现黄色量能力度线时,配合高昂的获利比例,就是可能的买点到来。等力度线扎破量能柱或力度线消失时,就是卖点。震荡期时,黄色量能力度线超出量能柱大概率是假突破,无视即可。}
{成交量}
成交量:vol,volstick;
{预计量:if(currbarscount=1 and period=5,vol*240/fromopen,drawnull),colorffff00;}
var1:=vol/((high-low)*2-abs(close-open));
买盘:if(close>open,var1*(high-low),if(close
卖盘:-if(close>open,0-var1*((high-close) (open-low)),if(close
净买:(买盘-卖盘),coloryellow,nodraw;
换手率:hsl,colorwhite,nodraw;
累计10日换手:sum(换手率,10),nodraw;
{绿色柱子}
stickline(vol>0,vol,0,3,0),color005500;
{红色柱子}
stickline(买盘>0,0,买盘,3,0),color0000bb;
五周期量:ma(vol,5),colorwhite,linethick1;
十周期量:ma(vol,10),colorffff00,linethick1;
total:=if(period=1,5,if(period=2,15,if(period=3,30,if(period=4,60,if(period=5,240,1)))));
mtime:=mod(fromopen,total);
ctime:=if(mtime<0.5,total,mtime);
va:=if(close>ref(close,1),vol,-vol);
obv1:=sum(if(close=ref(close,1),0,va),0);
obv2:=ema(obv1,3)-ma(obv1,9);
obv3:=ema(if(obv2>0,obv2,0),3);
mac3:=ma(c,3);
stickline(obv3>ref(obv3,1) and mac3>ref(mac3,1),0,obv3,0.1,0),coloryellow;