N:=20;
JJ:=(H+L+C)/3;
JJJ:=SUM(JJ,5)/5;
VV:=IF(C>JJJ,VOL,0-VOL);
LDJ:=SUM(VV,N);
STICKLINE(LDJ>=0,0,LDJ,3,0),COLOR000011;
STICKLINE(LDJ>=0,0,LDJ,2.5,0),COLOR000033;
STICKLINE(LDJ>=0,0,LDJ,2,0),COLOR000055;
STICKLINE(LDJ>=0,0,LDJ,1.5,0),COLOR000077;
STICKLINE(LDJ>=0,0,LDJ,1,0),COLOR000099;
STICKLINE(LDJ>=0,0,LDJ,0.5,0),COLOR0000BB;
STICKLINE(LDJ<0,0,LDJ,3,0),COLOR222200;
STICKLINE(LDJ<0,0,LDJ,2.5,0),COLOR333300;
STICKLINE(LDJ<0,0,LDJ,2,0),COLOR444400;
STICKLINE(LDJ<0,0,LDJ,1.5,0),COLOR555500;
STICKLINE(LDJ<0,0,LDJ,1,0),COLOR666600;
STICKLINE(LDJ<0,0,LDJ,0.5,0),COLOR777700;
LN1:SMA(LDJ,3,1),COLORWHITE;
LN2:SMA(LN1,3,1),COLORYELLOW;
LN3:SMA(LN2,5,1),COLORFF00FF; |