input:n(5,1,30,1) ; gqc:=DYNAINFO(3); gh:=DYNAINFO(5); gL:=DYNAINFO(6); gzdz:=max(gh-gqc,gqc-gL); gf:=gzdz/gqc; w:=gqc-gzdz; shqc:=hhv(STKINDI('sh000001','001.rc#day'),0); shH:=hhv(STKINDI('sh000001','001.H1#day'),0); shL:=HHv(STKINDI('sh000001','001.L1#day'),0); shc:=STKINDI('sh000001','001.c1#min1'); shjh:=STKINDI('sh000001','001.j#min1'); szqc:=hhv(STKINDI('399001','001.rc#day'),0); szH:=hhv(STKINDI('399001','001.H1#day'),0); szL:=HHv(STKINDI('399001','001.L1#day'),0); szc:=STKINDI('399001','001.c1#min1'); szjh:=STKINDI('399001','001.j#min1'); zqc:=if(STRCMP(MARKETLABEL,'SH')=0,shqc,szqc); zc:=if(STRCMP(MARKETLABEL,'SH')=0,shc,szc); zh:=if(STRCMP(MARKETLABEL,'SH')=0,shh,szh); zl:=if(STRCMP(MARKETLABEL,'SH')=0,shl,szl); zjh:=if(STRCMP(MARKETLABEL,'SH')=0,shjh,szjh); zzdz:=max(zh-zqc,zqc-zl); ZF:=zzdz/zqc; bl:=GF/ZF; s:=(zc/zqc-1)*bl*gqc+gqc; XS:=if(STRCMP(MARKETLABEL,'SH')=0,s,if(TIME<=145800 and TIME<=145900 and STRCMP(MARKETLABEL,'SH')>=1,s,ref(s,1))); J:=SUM(XS*zjh,0)/SUM(zjh,0); jj:=if(STRCMP(MARKETLABEL,'SH')=0,j,if(TIME<=145800 and TIME<=145900 and STRCMP(MARKETLABEL,'SH')>=1,j,ref(j,1))); J1:=SUM(zc*zjh,0)/SUM(zjh,0); POLYLINE(C,xs),COLORMAGENTA,LINETHICK3; 指数:zc,COLORMAGENTA,LINETHICK0; 涨跌%:(zc/zqc-1)*100,LINETHICK0,COLORMAGENTA,PRECIS2;
DRAWTEXTABS(0,98,'指数涨幅:'+涨跌%+'%'),Color00ff00,LINETHICK5; DRAWTEXTABS(0,128,'指数:'+指数+''),Color00ff00,LINETHIC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