源码:
{成交量主动即主动买卖成交量 通达信副图 大马路123}
万手:VOL/10000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:AA/10000;
主动买量:=ACTINVOL;
主买量:主动买量/10000,COLORRED,NODRAW;
主动卖量:=-ACTOUTVOL;
主卖量:主动卖量/10000,COLORLIBLUE,NODRAW;
主买净量:主买量+主卖量,COLORMAGENTA,NODRAW;
主买比:主买量/(主买量-主卖量)*100,COLORYELLOW,NODRAW;
主动量比:(主买量-主卖量)/万手*100,COLORLIBLUE,NODRAW;
净买量比:主买净量/万手*100,COLORLIBLUE,NODRAW;
净买量:=ACTINVOL-ACTOUTVOL;持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE;
持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
上涨家:INDEXADV,COLOR0080FF,NODRAW;
下跌家:INDEXDEC,COLORGREEN,NODRAW;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,1),COLORWHITE;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,1),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,1),COLORGREEN;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLOR00FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR007777 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR009999 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00BBBB ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR00DDEE ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ;STICKLINE(主动卖量<=0,0,-主动卖量,3.2,0),COLOR990000;
STICKLINE(主动卖量<=0,0,-主动卖量,2.7,0),COLORCC0000;
STICKLINE(主动卖量<=0,0,-主动卖量,2.1,0),COLORFF4400;
STICKLINE(主动卖量<=0,0,-主动卖量,1.5,0),COLORFF8800;
STICKLINE(主动卖量<=0,0,-主动卖量,0.9,0),COLORFFCC00;
STICKLINE(主动卖量<=0,0,-主动卖量,0.2,0),COLORCYAN;
STICKLINE(主动买量>=0,-主动卖量,主动买量-主动卖量,3.2,0),COLOR000033;
STICKLINE(主动买量>=0,-主动卖量,主动买量-主动卖量,2.7,0),COLOR000066;
STICKLINE(主动买量>=0,-主动卖量,主动买量-主动卖量,2.1,0),COLOR000099;
STICKLINE(主动买量>=0,-主动卖量,主动买量-主动卖量,1.5,0),COLOR0000CC;
STICKLINE(主动买量>=0,-主动卖量,主动买量-主动卖量,0.9,0),COLOR0000FF;
STICKLINE(主动买量>=0,-主动卖量,主动买量-主动卖量,0.2,0),COLORCC66FF;
STICKLINE(净买量<=0,0,净买量,3.2,0),COLOR003300;
STICKLINE(净买量<=0,0,净买量,2.7,0),COLOR006600;
STICKLINE(净买量<=0,0,净买量,2.1,0),COLOR009900;
STICKLINE(净买量<=0,0,净买量,1.5,0),COLOR00CC00;
STICKLINE(净买量<=0,0,净买量,0.9,0),COLOR00FF00;
STICKLINE(净买量<=0,0,净买量,0.2,0),COLORGREEN;STICKLINE(净买量>=0,0,-净买量,3.2,0),COLOR000033;
STICKLINE(净买量>=0,0,-净买量,2.7,0),COLOR000066;
STICKLINE(净买量>=0,0,-净买量,2.1,0),COLOR000099;
STICKLINE(净买量>=0,0,-净买量,1.5,0),COLOR0000CC;
STICKLINE(净买量>=0,0,-净买量,0.9,0),COLOR0000FF;
STICKLINE(净买量>=0,0,-净买量,0.2,0),COLORCC66FF;
0;
五日: MA(V,5),COLOR40FF00;
三五日: MA(V,35),COLORYELLOW;
一三五日:MA(V,135),COLOR0080FF;
NOTEXT强:IF(五日>MA(五日,2),五日,DRAWNULL),COLORRED;
说明:所谓正版主动的买卖成交量,就是说不是我自己设置的,而是通达信本身的,是可以与对应的净流入额换算核对的。
1.成交量的单位为万手;
2.预测:是预测当天的成交量;
3主买量:即主动买入量,相当于L2的超大单,大单,中单和小单,共同的买入量;
4.主卖量:即主动卖出量,相当于L2的超大单,大单,中单和小单,共同的卖出量;
5.主买净量:即主买量-主卖量的净量;
6.主买比:是主动买入量与主动买入量和主动卖出量之和的百分比;
7.主动量比:是主动买入量与主动卖出量之和与总成交量的百分比;
8.净买量比:是主动买入净量与总成交量之和的百分比;
9.柱状图:0轴以上,实心柱,蓝色是主动卖出量;红色是主动买入量;黄色是当天的预测量。空心柱是总的成交量。
0轴以下,均为实心柱。红色是主动买净量;蓝色是主动卖净量。
2148344297.JPG
|