x:0;
b:=(ZDMC+BDMC)*CLOSE/10000,nodraw;
a:=(ZDMR+BDMR)*CLOSE/10000,nodraw;//主力资金流入金额
a1:=SUM(a,1),coloryellow;
b1:=-SUM(b,1),coloryellow;
P0:a1+b1,nodraw;
P1:SUM(P0,1),nodraw,colorwhite;
P3:SUM(P0,3),nodraw,colorgreen;
P5:SUM(P0,5),nodraw,colorblue;
P10:SUM(P0,10),nodraw,colormagenta;
P20:SUM(P0,20),nodraw,color0000ff;
STICKLINE(P0,0,P5,9,0),colorblue;//绘制柱状线
STICKLINE(P0,0,P10,9,0),colormagenta;//绘制柱状线
IF(P20>0){
STICKLINE(VOL,0,P20,9,0),color0000ff;//绘制柱状线
}
IF(P20<0){
STICKLINE(VOL,0,P20,9,0),colorgreen;//绘制柱状线
}
IF(P0<0){
STICKLINE(VOL,0,P0,9,0),colorgreen;//绘制柱状线
}
IF(p0<p20)
{
STICKLINE(P0,0,P0,9,0),coloryellow;//绘制柱状线
}
IF(p0>p20)
{
STICKLINE(P0,0,P0,7,0),coloryellow;//绘制柱状线
}
//STICKLINE(P0>0,0,P0,8,0),color0000ff;//绘制柱状线
//STICKLINE(P0<0,0,P0,8,0),color00ff00;//绘制柱状线