{-------【成交分析】带预测功能五彩虚拟成交量图,可作短线操作的看图依据------}
{-----------------------------五彩虚拟成交量分析公式-----------------------}
成交【万手】:VOL/10000,COLORC08080,NODRAW;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLOR3333AA,NODRAW;
主动卖:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR009900,NODRAW;
主买:主动买/10000,COLOR3333AA,NODRAW;
主卖:主动卖/10000,COLOR009900,NODRAW;
差额%:(主动买-主动卖)/(VOL/100),COLOR8AA0D8,NODRAW;
量比:VOL/MA(VOL,5),COLOR999999,NODRAW;
启动线:MA(成交【万手】,5),COLORFFFFFF,NODRAW;
洗盘线:MA(成交【万手】,10),COLOR00FFFF,NODRAW;
异动线:MA(成交【万手】,20),COLORFF0000,NODRAW;
{------------------------盘中虚拟成交量条件判断----------------------------}
日线预测:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
预测:日线预测/10000,COLOR009999;
{------------------------盘中虚拟成交量黄色虚线柱画线----------------------}
当日预测画柱:STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,日线预测,0,3.8,-1),COLOR00CCCC;
{---------------------二十日量线补及五彩成交量柱形画线---------------------}
收盘价>昨收:STICKLINE(CLOSE> REF(CLOSE,1),0,VOL,3.0,0),COLOR6666FF;
收盘价<昨收:STICKLINE(CLOSE< REF(CLOSE,1),0,VOL,3.0,0),COLORCYAN;
收盘价=昨收:STICKLINE(CLOSE= REF(CLOSE,1),0,VOL,3.0,0),COLORC0C0C0;
{-------------主动卖盘柱形,主动买盘柱形,五日量线,十日量线补画--------------}
主动卖盘柱形:STICKLINE(主动卖>=0,0,主动卖,2.0,0),COLOR009900;
主动买盘柱形:STICKLINE(主动买>=0,0,主动买,2.0,0),COLOR3333AA;
{--------------------------虚拟分钟预测量高点补画--------------------------}
预测量高点:STICKLINE(日线预测,日线预测,日线预测,3.8,-1),COLOR00CCCC;
二十日量线补画:DRAWBAND(MA(V,135),RGB(0,0,255),MA(V,135),RGB(255,51,51));
DRAWBAND(MA(V,135),RGB(0,102,255),MA(V,135)*0.99,RGB(0,102,255));
DRAWBAND(MA(V,135),RGB(0,0,255),MA(V,135)*0.99,RGB(0,0,255));
十日量线补画:DRAWBAND(MA(V,35),RGB(255,255,0),MA(V,35),RGB(255,255,0));
五日量线补画:DRAWBAND(MA(V,5),RGB(255,255,255),MA(V,5),RGB(255,255,255));
主力启动线:=MA(V,5),COLORFFFFFF,NODRAW;
主力洗盘线:=MA(V,35),COLOR00FFFF,NODRAW;
资金异动线:=MA(V,135),COLORFF0000,NODRAW;
{----------------------------买卖参考--------------------------------------}
出击:STICKLINE(CROSS(主力启动线,资金异动线) OR ((主力洗盘线 > 资金异动线) AND CROSS(主力启动线,主力洗盘线)),0,VOL*0.13,2,0),COLORYELLOW;
启动:STICKLINE(主力启动线>REF(主力启动线,1) AND (CROSS(VOL,主力启动线) AND (REF(VOL,1)<REF(资金异动线,1) OR REF(VOL,2)<REF(资金异动线,2))),0,VOL*0.08,2,0),COLOR45AAEE;