N:=45;
主力仓位%:=100-(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,NODRAW,COLORYELLOW;
获利1:WINNER(CLOSE*0.9)*100,COLORRED,NODRAW;
浮筹1:(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9)/WINNER(HHV(HIGH,0)))*100,COLORYELLOW,NODRAW;
套牢1:100-浮筹1-获利1,COLORGREEN,NODRAW;
套:STICKLINE(套牢1>0.1,浮筹1+获利1,100,4,0),COLORGREEN;
浮:STICKLINE(浮筹1,获利1,浮筹1+获利1,4,0),COLORYELLOW;
获:STICKLINE(获利1,0,获利1,4,0),COLORMAGENTA;
STICKLINE(获利1>=60,0,获利1,4,0),COLORRED;
筹10:PWINNER(10,C)*100,COLORWHITE,NODRAW;
筹30:PWINNER(30,C)*100,COLORRED,LINETHICK2,NODRAW;
主力:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORLIRED,LINETHICK2,NODRAW;
获利盘:WINNER(CLOSE)*100,COLORRED,NODRAW;
增:获利盘-REF(获利盘,1),NODRAW;
HJ_1:=(WINNER(CLOSE*1.075)-WINNER(CLOSE*0.925))*100;
近邻浮筹:HJ_1/WINNER(HHV(HIGH,0)),COLORYELLOW,NODRAW;
DRAWICON(CROSS(筹30,近邻浮筹),获利盘,1);
纵横:获利盘-近邻浮筹,NODRAW,COLORWHITE;
极强:=90,POINTDOT,COLORBLUE;
强势:=65,POINTDOT,COLORYELLOW;
强弱分界:=50,COLORBLUE;
零位线:=0,COLORBLUE;
主筹估算:=EMA(WINNER(C)*70,3)*C,LINETHICK2,COLORRED;
散筹估算:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3)*C,LINETHICK1,COLORGREEN;
涨停数:="880006$C",NODRAW;
EE1:=CON2STR(涨停数,0);
EE2:=STRCAT(EE1,' 家');
EE3:=STRCAT('涨停数: ',EE2);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ISLASTBAR,0.11,0.06,0,EE3),COLORRED;
跌停数:="880006$O",NODRAW;
FE1:=CON2STR(跌停数,0);
FE2:=STRCAT(FE1,' 家');
FE3:=STRCAT('跌停数: ',FE2);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ISLASTBAR,0.21,0.06,0,FE3),COLORBLACK;
VAR1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
吸筹:=IF(VAR8>100,100,VAR8)*VAR1,COLORRED;
庄家吸筹:STICKLINE(吸筹>-150,0,吸筹,8,0),COLORBLACK;
散户:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORFFFF00,LINETHICK1;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
庄家:EMA(J,6),COLORFF00FF,LINETHICK1;
SF:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,NODRAW;
ZL:=100-SF;
DRAWNUMBER_FIX(ISLASTBAR AND ZL>0,0.95,0.5,0,ZL),COLORBLACK;
DRAWTEXT_FIX(ZL>0,0.99,0.5,0,'%'),COLORBLACK;