rcc:=DYNAINFO(3); s2:=sma(c,3,1); s6:=sma(c,5,1);
dk:=10*(s2-s6); kk:=IF(DATATYPE=8,0.95,1);
STICKLINE(dk>0,rcc*kk,rcc*kk+dk,0,1),COLORRED;
STICKLINE(dk<0,rcc*kk,rcc*kk+dk,0,1),COLORCYAN;
XG:HHV(H,480),DOTLINE,COLORRED;
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,C,8,0),COLORGREEN;
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10),C*0.99,'上突'),COLORYELLOW;
T:=BARSCOUNT(C);
TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME0>39600 ,240) ;
DRAWTEXT(TP,L,'★突破'),COLORred;
VERTLINE( tp,1),COLORGREEN,LINETHICK1;
HHV(h,T),DOTLINE,Color00FFFF;
ZLLR:=AMOUNT*(DYNAINFO(95)+DYNAINFO(94))/10000;
ZLLC:=AMOUNT*(DYNAINFO(98)+DYNAINFO(97))/10000;
TDLR:=AMOUNT*DYNAINFO(95)/10000;
TDLC:=AMOUNT*DYNAINFO(98)/10000;
DDLR:=AMOUNT*DYNAINFO(94)/10000;
DDLC:=AMOUNT*DYNAINFO(97)/10000;
ZDLR:=AMOUNT*DYNAINFO(93)/10000;
ZDLC:=AMOUNT*DYNAINFO(96)/10000;
XDLR:=1-(AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93)))/10000;
XDLC:=1-(AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96)))/10000;
SHJM:=SUM(XDLR-XDLC,0);
ZHJM:=SUM(ZDLR-ZDLC,0);
DHJM:=SUM(DDLR-DDLC,0);
JGJM:=SUM(TDLR-TDLC,0);
ZLJM:=SUM(ZLLR-ZLLC,0);
ZLMR:=SUM(ZLLR,0);
ZLMC:=SUM(ZLLC,0);
JGMR:=SUM(TDLR,0);
JGMC:=SUM(TDLC,0);
DHMR:=SUM(DDLR,0);
DHMC:=SUM(DDLC,0);
ZHMR:=SUM(ZDLR,0);
ZHMC:=SUM(ZDLC,0);
SHMR:=SUM(XDLR,0);
SHMC:=SUM(XDLC,0);
DRAWTEXTABS(1,10,'主力流入:'+ NUMTOSTRN(ZLMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,10,'主力流出:'+ NUMTOSTRN(ZLMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,10,'主力净买:'+ NUMTOSTRN(ZLJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,25,'机构流入:'+ NUMTOSTRN(JGMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,25,'机构流出:'+ NUMTOSTRN(JGMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,25,'机构净买:'+ NUMTOSTRN(JGJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,40,'大户流入:'+ NUMTOSTRN(DHMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,40,'大户流出:'+ NUMTOSTRN(DHMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,40,'大户净买:'+ NUMTOSTRN(DHJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,55,'中户流入:'+ NUMTOSTRN(ZHMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,55,'中户流出:'+ NUMTOSTRN(ZHMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,55,'中户净买:'+ NUMTOSTRN(ZHJM,1)),COLORRED,LINETHICK2;
DRAWTEXTABS(1,70,'小股民流入:'+ NUMTOSTRN(SHMR,1)),ColorFF00FF,LINETHICK1;
DRAWTEXTABS(110,70,'小股民流出:'+ NUMTOSTRN(SHMC,1)),COLOR00ff00,LINETHICK1;
DRAWTEXTABS(220,70,'小股民净买:'+ NUMTOSTRN(SHJM,1)),COLORRED,LINETHICK2; |