以下是通达信+买-卖(成交量)副图源码

n  1   100   6

 VAR0:=(2*CLOSE+HIGH+LOW)/4;
 VAR1:=MA(VAR0,N);
 VAR2:=VAR1-MA(VAR0,N/2)<0;
 VAR3:=VAR1-MA(VAR0,N/2)>0;
 VAR4:=BARSLAST(VAR2);
 VAR5:=0-BARSLAST(VAR3);
 AJX:=IF(VAR2<=0,VAR4,VAR5);
正买负卖:-1*AJX,VOLSTICK; 分界:0;
倍量:VOL>=REF(V,1)*1.90 AND C>REF(C,1),NODRAW,COLORYELLOW;
地量:VOL<REF(LLV(VOL,60),1),NODRAW,COLORCA00CA;
平量:ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,NODRAW,COLOR009F00;
倍缩:VOL<=REF(V,1)*0.5,NODRAW,COLOR9E3EFF;DRAWICON(倍缩,1,23);
低量13:VOL=LLV(VOL,13) AND BARSCOUNT(V)>=13,NODRAW,COLORFFFFFF;
低量五十:VOL=LLV(VOL,50) AND BARSCOUNT(V)>=50,NODRAW,COLORFF9B37;
地量百日:VOL=LLV(VOL,100) AND BARSCOUNT(V)>=100,NODRAW,COLOR55AAFF;
 STICKLINE(地量,0,正买负卖,0.8,0),COLORCA00CA;
 STICKLINE(倍量,0,正买负卖,0.8,0),COLORYELLOW;
 STICKLINE(平量,0,正买负卖,0.8,0),COLOR009F00;
 STICKLINE(倍缩,0,正买负卖,1,0),COLOR9E3EFF;
 STICKLINE(低量13,0,正买负卖,1,0),COLORFFFFFF;
 STICKLINE(低量五十,0,正买负卖,1,0),COLORFF9B37;
 STICKLINE(地量百日,0,正买负卖,1,0),COLOR55AAFF;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。