DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,GNBLOCK),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.05,0.05,0,FGBLOCK),COLORMAGENTA;
ZT:=VOL/((H-L)*2-ABS(C-O));
CTA1:=IF(C>O,ZT*(H-L),IF(C<O,ZT*((H-O)+(C-L)),VOL/2)),NODRAW;
CTA2:=IF(C>O,0-ZT*((H-C)+(O-L)),IF(C<O,0-ZT*(H-L),0-VOL/2)),NODRAW;
净流入:=(CTA1+CTA2)/99,NODRAW;
CTA3:=(C/REF(C,1)-1)*100;
DRAWICON(净流入>=200 AND CTA3>=3,L,34);
DRAWTEXT(净流入>=200 AND CTA3>=3,L*0.995,VARCAT(VARCAT('净买:',VAR2STR(净流入,0)),'万')),COLORRED;
DRAWTEXT(净流入<-200 AND CTA3<=-2,H*1.01,VARCAT(VARCAT('流出:',VAR2STR(净流入,0)),'万')),COLORGREEN;
WX2:=AMOUNT/10000;
占比:=净流入/WX2*100,NODRAW;
DRAWTEXT(净流入>=200 AND CTA3>=3 AND 占比>=15 ,L*0.965,VARCAT(VARCAT('占比:',VAR2STR(占比,0)),'%')),COLORYELLOW;
A:=(C/REF(C,1)-1)*100>9.82 AND H=C AND H<>L,NODRAW;
B:=BARSLAST(A),NODRAW;W:=REF(BARSLAST(A),1),NODRAW;
WX:=REF(C,B),NODRAW;
CTD:=CROSS(C,WX) AND C>O AND C>REF(C,1) AND W>=3 AND W<=10 NODRAW;
CTDA:=FILTER(CTD,30);
CTB1:=WX-0.01,NODRAW;
CTDB:=CROSS(C,CTB1) AND C>O AND C>REF(C,1) AND W>=3 AND W<=10 AND H=C;
CTB2:=FILTER(CTDB,30),COLORMAGENTA;
WUP:=REF(O,B);WUA:=WUP+(WX-WUP)*0.7,NODRAW;
CTDC:=CROSS(C,WUA) AND C>O AND C>REF(C,1) AND W>=3 AND W<=10 ;
CTBP:=FILTER(CTDC,30),COLORMAGENTA;
跟庄买入:CTDA OR CTB2 OR CTBP,NODRAW,COLORLIRED;
WX1:=COUNT(A,10)>=2;
涨停精选:FILTER(CTDC AND WX1,30),NODRAW,COLORLIRED;
STICKLINE(CTDA OR CTB2 OR CTBP, O,C, 2,0),COLORYELLOW;
STICKLINE(CTDA OR CTB2 OR CTBP, C,H, 0,0),COLORYELLOW;
STICKLINE(CTDA OR CTB2 OR CTBP, O,L, 0,0),COLORYELLOW;
DRAWTEXT(CTDA OR CTB2 OR CTBP ,L*0.97,' ★跟庄买入'),COLORFFFFFF;
DRAWICON(CTDA OR CTB2 OR CTBP ,L,25);
趋势线1:=MA(C,5),COLORBLUE;
WX3:=(H-趋势线1)/趋势线1*100;
抛点:=(H-趋势线1)/趋势线1*100>=20 AND H>C;
DRAWTEXT(抛点,H*1,' ★卖'),COLORGREEN;
减点:=WX3>=15 AND WX3<20 AND H>C;
A1:=FILTER(减点,12);
DRAWTEXT(A1,H*1.02,' ★减'),COLORWHITE;
趋势线1A:=MA(C,3),COLORBLUE;
趋势线2:EMA(趋势线1A,2),COLORBLUE,DOTLINE;
趋势线3:EMA(趋势线2,2),COLORMAGENTA,DOTLINE;
趋势线4:EMA(趋势线3,2),COLORLIGREEN,DOTLINE;
持股线:IF(趋势线1A>趋势线2,趋势线2,DRAWNULL),COLORYELLOW,LINETHICK3;
CTE5:=DYNAINFO(88)/10000,NODRAW;CTE6:=DYNAINFO(7),NODRAW;
STICKLINE(C/REF(C,1)>=1.097 AND H=C AND CTE6=C,C,O,2,0),COLORLIMAGENTA;
WX4:=(C/REF(C,1)-1)*100>9.8 AND H=C AND H<>L,COLORMAGENTA
;DRAWTEXT(CTE6=C AND WX4 ,L*1.035,VARCAT(VAR2STR(CTE5,0),'万★封单资金')),COLORWHITE;
CTE8:=DYNAINFO(88)/DYNAINFO(10)*100,NODRAW;
DRAWTEXT(CTE6=C AND WX4 ,L*1.01,VARCAT(VAR2STR(CTE8+5,0),'★系数')),COLORGREEN;
STICKLINE(C/REF(C,1)>=1.097 AND H>L AND H=C,C,O,2,0),COLORLIRED;
STICKLINE(REF(C,1)/C>=1.097 AND H>L AND H=C,C,O,2,0),COLORBLUE;
STICKLINE(H/REF(C,1)>=1.097 AND H>C AND H=C,H,C,0,0),COLORLIRED;
STICKLINE(REF(C,1)/L>=1.097 AND H>L AND H=C,C,L,0,0),COLORBLUE;