成交量分布KD副图公式

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;

(0)

相关推荐