VAR0:=(2*CLOSE+HIGH+LOW)/4;
VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
B0:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);
AA:SMA(SMA(VAR2,2,1)+3,2,1),colorred,LINETHICK1;
浮筹:=EMA(B0,4),LINETHICK1,DOTLINE,coloryellow;
BB:SMA(VAR1,3,1),colorgreen,LINETHICK1;
STICKLINE(AA>BB,6,90,5,0),COLOR000044;
STICKLINE(BB>AA,6,90,5,0),COLOR422D00;
多方:SMA(SMA(VAR2,2,1)+3,2,1),COLOR0000FF,LINETHICK2;
空方:SMA(VAR1,3,1),COLORFFFF00,LINETHICK1,DOTLINE;
强势线:90,colormagenta,DOTLINE;
中轴线: 50,COLOR0080FF,DOTLINE;
弱势线:10,colorlicyan,DOTLINE;
STICKLINE(多方>强势线,多方,强势线,1,0),COLOR0000FF;
STICKLINE(多方<弱势线,多方,弱势线,1,0),COLOR0000FF;
STICKLINE(空方<弱势线,空方,弱势线,1,0),colorgreen;
STICKLINE(空方>强势线,空方,强势线,1,0),colorgreen;
LC:= REF(C,1);
VAR02:=REF(LOW,1);
VAR3:=SMA(Abs(LOW-VAR02),13,1)/SMA(MAX(LOW-VAR02,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
VAR11:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
力度:=VAR10*5, colorwhite,LINETHICK2;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)
超跌:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,60)*100*1.1;
买:力度>7 AND 超跌<-15.5 AND WR1<-100,COLOR3535FF,STICK,LINETHICK1;
DRAWTEXT(买>0,0.0,'买'),COLORFFFFFF;
DRAWICON(买>0,买,1 );
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
见底:=10;
见顶:=90;
短期底部:=crOSS(趋势,见底),colorred;
STICKLINE(短期底部,4,40,1,0),colorred;
DRAWTEXT(CROSS(趋势,见底),40,'底');
短期顶部:=CROSS(见顶,趋势),colorgreen;
STICKLINE(短期顶部,4,40,1,0),colorgreen;
DRAWTEXT(CROSS(见顶,趋势),40,'顶'),coloryellow;
小股民:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(小股民,1)+0.333*小股民,2);
高出:100*(CROSS(庄家,小股民) AND 小股民>50),COLOR333333,STICK,LINETHICK1;
DRAWTEXT(高出>0,0.99,'高出'),COLORFFFF00;
DRAWICON(高出>0,高出,2 );
STICKLINE(高出,0,2,0,1),COLOR0000FF,NODRAW;
A1:=(C-REF(C,1))/REF(C,1)*100;
MA5:=BArslAST(A1>3);
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
MA20:=IF(MA5>0,1,0);
底:CROSS(C,ZX) AND MA20=0,COLOR464646,STICK,LINETHICK1;
DRAWICON(底>0,底,1 );
STICKLINE(底,0,2,0,9),COLOR0000FF;
主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),
colorred,LINETHICK1,NODRAW;
即将爆发线: 65,COLOR00FF00,NODRAW;
爆发线:80,colorwhite,LINETHICK1,NODRAW;
DRAWTEXT(CROSS(主力资金,爆发线),主力资金,'爆发') ,coloryellow;
爆发警戒线: 50,COLOR00FF00,NODRAW;
抄底线:20,colorwhite,LINETHICK2,NODRAW;
DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,'加') ,colorwhite;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,'加') ,colorwhite;
AA30:=MA(C,30);