编写要求:
www.gszx.com.cn网解答:
网友求助:
代码1:彩色成交量指标
DRAWTEXTABS(0,1,'■板块:'+BKNAME),Color0000FF;
zero:0,colorcyan;
分时成交量:=MAX(0,VOL);
STICKLINE(REF(c,1)>c ,分时成交量 ,0,1,0 ),colorgreen;
STICKLINE(REF(c,1)<c ,分时成交量 ,0,1,0 ),colorred;
STICKLINE(REF(c,1)=c ,分时成交量 ,0,1,0 ),colorwhite;
代码2:分时ddx
input:p1(60),p2(5),p3(10);
variable:ddx=0;
DDX:(ordervol(1,2)-ordervol(2,2))/capital*100;
DDX累积:SUM(ddx,0);
drawtextabs(0,0,'大单动向');
代码3:分时ddy
input:p1(60),p2(5),p3(10);
variable:ddy=0;
DDy:(ordernum(2,0)-ordernum(1,0))/(CAPITAL/(vol/TICKCOUNT))*100,colorstICK,LINETHICK2;
DRAWTEXTREL(10,10,'分时DDY');
DDy累积:SUM(ddy,0),coloryellow;
DRAWTEXTABS(0,1,'■板块:'+BKNAME),Color0000FF;
分时成交量:=MAX(0,VOL);
STICKLINE(REF(c,1)>c ,分时成交量 ,0,1,0 ),colorgreen;
STICKLINE(REF(c,1)<c ,分时成交量 ,0,1,0 ),colorred;
STICKLINE(REF(c,1)=c ,分时成交量 ,0,1,0 ),colorwhite;
DDX:=(ordervol(1,2)-ordervol(2,2))/capital*100;
DDX累积:SUM(ddx,0),LINETHICK0;
DDy:=(ordernum(2,0)-ordernum(1,0))/(CAPITAL/(vol/TICKCOUNT))*100;
DDy累积:SUM(ddy,0),coloryellow,LINETHICK0;