%>
N:=21;
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,8,0),COLOR000011;
STICKLINE(LDJ>=0,0,LDJ,6.5,0),COLOR000033;
STICKLINE(LDJ>=0,0,LDJ,5,0),COLOR000055;
STICKLINE(LDJ>=0,0,LDJ,3.5,0),COLOR000077;
STICKLINE(LDJ>=0,0,LDJ,2,0),COLOR000099;
STICKLINE(LDJ>=0,0,LDJ,0.5,0),COLOR0000BB;
STICKLINE(LDJ<0,0,LDJ,8,0),COLOR222200;
STICKLINE(LDJ<0,0,LDJ,6.5,0),COLOR333300;
STICKLINE(LDJ<0,0,LDJ,5,0),COLOR444400;
STICKLINE(LDJ<0,0,LDJ,3.5,0),COLOR555500;
STICKLINE(LDJ<0,0,LDJ,2,0),COLOR666600;
STICKLINE(LDJ<0,0,LDJ,0.5,0),COLOR777700;
LN1:SMA(LDJ,3,1),COLORWHITE,PRECIS0,LAYER0;
LN2:SMA(LN1,3,1),COLORYELLOW,PRECIS0,LAYER0;
LN3:SMA(LN2,5,1),COLORFF00FF,PRECIS0,LAYER0;
{股票教程网-http://gwgz.net/承接通达信软件和公式破解,普通加密破解,完全加密破解,导入密码破解,时间限制破解,公式编写,可按您的要求写公式指标,价格按难度不同报价,有需要可以找我们}