通达信成交量分布副图指标 源码

[复制链接]
查看140 | 回复0 | 2021-8-26 22:35:26 | 显示全部楼层 |阅读模式

以下是通达信成交量分布副图指标 源码(无源码的请下载附件导入)

M:=EMA("KDJ.K"(9,3,3)/100+"KDJ.D"(9,3,3)/100,20)*20;
 AMA_S:=SUM(V,M)/SUM(1,M);
 ACQ:=ABS(V);
 ASD1:=SQRT(SUM((V-AMA_S)*(V-AMA_S)*ACQ/SUM(ACQ,M),M));
 ASD2:=SQRT(SUM((V-AMA_S)*(V-AMA_S)*ACQ,M)/SUM(ACQ,M));
 ASD:=(ASD1+ASD2)/2;
 ADX:=AMA_S+2*ASD,COLORFF00CC,LINETHICK2;
 AZX:=AMA_S,COLORFF00CC,LINETHICK2;
 DRAWBAND(ADX,RGB(128,128,0),AZX,RGB(128,128,0));
 V,NODRAW;
 STICKLINE(CLOSE>=OPEN,0,V,2.2,0) ,COLOR102088;
 STICKLINE(CLOSE>=OPEN,0,V,2.0,0) ,COLOR102099;
 STICKLINE(CLOSE>=OPEN,0,V,1.8,0) ,COLOR1020AA;
 STICKLINE(CLOSE>=OPEN,0,V,1.4,0) ,COLOR1020BB;
 STICKLINE(CLOSE>=OPEN,0,V,1.2,0) ,COLOR1020CC;
 STICKLINE(CLOSE>=OPEN,0,V,1.0,0) ,COLOR1020DD;
 STICKLINE(CLOSE>=OPEN,0,V,0.6,0) ,COLOR1020EE;
 STICKLINE(CLOSE>=OPEN,0,V,0.2,0) ,COLOR1020FF;
 STICKLINE(CLOSE< OPEN,0,V,2.2,0 ),COLOR990000;
 STICKLINE(CLOSE< OPEN,0,V,2,0 ),COLORCC0000;
 STICKLINE(CLOSE< OPEN,0,V,1.2,0 ),COLORFF4400;
 STICKLINE(CLOSE< OPEN,0,V,0.6,0 ),COLORFF8800;
 STICKLINE(CLOSE< OPEN,0,V,0.1,0 ),COLORFFCC00;
 STICKLINE(CLOSE< OPEN,0,V,0,0 ),COLORCYAN;

95244207.png

95244207.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则