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1:=H=L AND C>REF(C,1);{一字涨停};
TJ2:=H=L AND C
TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};
量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盘量,白色}
EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
ZL:=2*(H-L)+Abs(C-O)+3*IF(TJ3,EPSL,ABS(EE));
JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;
差:(JGL_DX*量_价)/20000,COLOR13AADD,NODRAW;
DX:=JGL_DX*100,NODRAW;
买:量_价*(1+JGL_DX)/20000,COLOR1133AA,NODRAW;
卖:量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW;
量差:买-卖,NODRAW,COLORYELLOW;
比:=买/卖*100-100;
亿:=AMOUNT/100000000,COLORFF00FF,NODRAW;
VART:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入:IF(CLOSE>OPEN,VART*(HIGH-LOW),IF(CLOSE
万手:=VOL/10000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:=AA/10000;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
差额:(主动买+主动卖)/10000,COLORRED;
换:=SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;
伍:SUM(VOL,5)/CAPITAL*100,COLORGREEN,NODRAW;
十:SUM(VOL,10)/CAPITAL*100,COLORYELLOW,NODRAW;
二:SUM(VOL,20)/CAPITAL*100,COLORRED,NODRAW;
VOLUME:VOL,VOLSTICK;
STICKLINE(量差<=0,0,V,3,0),COLOR009900;
STICKLINE(量差<=0,0,V,2.2,0),COLOR00BB00;
STICKLINE(量差<=0,0,V,1.5,0),COLOR00DD00;
STICKLINE(量差<=0,0,V,0.5,0),COLOR00FF00;
{红}
STICKLINE(量差>=0,0,V,3,0),COLOR000099;
STICKLINE(量差>=0,0,V,2.2,0),COLOR0000CC;
STICKLINE(量差>=0,0,V,1.5,0),COLOR0000FF;
STICKLINE(量差>=0,0,V,0.5,0),COLORCC66FF;
STICKLINE(换>=5,0,V,0.3,0),COLORYELLOW;
⑤:MA(V,5);
M10:MA(V,10);
DRAWTEXT(crOSS(⑤,M10) AND 量差>0,V+1.20,'★'),COLORGREEN;
STICKLINE(BARSCOUNT(C)>=60 AND V=LLV(V,60),V,V*0.6,1,0),COLORYELLOW;
STICKLINE(BARSCOUNT(C)>=135 AND V=LLV(V,135),0,V*0.5,1,0),COLOR0000FF;
VAR2:=HIGH-LOW;
VAR3:=ABS(OPEN-CLOSE);
VAR4:=HIGH-(IF(CLOSE>OPEN,CLOSE,OPEN));
VAR5:=(IF(CLOSE>OPEN,OPEN,CLOSE))-LOW;
VAR6:=VAR3/VAR2*VOL;
VAR7:=VAR4/VAR2*VOL;
VAR8:=VAR5/VAR2*VOL;
VAR9:=IF(VOL/CAPITAL>0.001,1,EXP(ABS(LOG(VOL/CAPITAL*100))));
VARA:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
VARB:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(CLOSE,30)>MA(CLOSE,60);
VARC:=MA(CLOSE,5)
逢高出货:DRAWTEXT(VAR7>VAR6 AND VARA>2 AND VAR7>VAR8 AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) AND VAR7>=MA(VOL,5),VOL,'逢高出货'),COLORRED;
逢低跟进:DRAWTEXT(VAR8>VAR6 AND VAR8>VAR7 AND VARA<-2 AND CLOSE
空头释放:DRAWTEXT(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE