RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K1:=SMA(RSV,10,1);
D1:=SMA(K1,5,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
BYEW:=KK+DD;
TGLD:=MOD( BYEW,10);
BYTD:=( BYEW-REF( BYEW,1))*10;
TYCFX:= BYEW+ BYTD;
主力:= BYTD>0;
散户:= BYTD<0;
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZSHTL:=SHCM/(ZLCM+SHCM)*100;
BYYD:=MA(ZLCM+SHCM,13);
HH:=BARSLASTCOUNT( BYTD>0)=1;
JLWP1:=EMA(EMA(EMA(CLOSE,9),9),9);
JLWP2:=(JLWP1-REF(JLWP1,1))/REF(JLWP1,1)*100;
JLWP3:=MA(JLWP2,8);
JLWP4:=CROSS(JLWP2,JLWP3);
JLWP5:=EMA(CLOSE,11)-EMA(CLOSE,24);
JLWP6:=(HIGH+LOW+CLOSE)/3;
JLWP7:=(JLWP6-MA(JLWP6,14))/(0.015*AVEDEV(JLWP6,14));
JLWP8:=EMA(EMA(EMA(JLWP7,2),2),2);
JLWP9:=EMA(EMA(EMA(JLWP7,3),2),2);
JLWP10:=(CROSS(JLWP8,JLWP9) OR (JLWP8>=JLWP9)) AND JLWP8>=-101 AND JLWP8>=REF(JLWP8,1)AND REF(JLWP8,1)< -101;
JLWP11:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
JLWP12:=SMA(JLWP11,3,1);
JLWP13:=SMA(JLWP12,3,1);
JLWP14:=3*JLWP12-2*JLWP13;
JLWP15:=EMA(EMA(EMA(JLWP14,2),2),2);
JLWP16:=JLWP15>REF(JLWP15,1);
B友尾盘:=JLWP10 AND JLWP16 AND C>OPEN AND HH AND C>MA(C,10);
STICKLINE(B友尾盘,0,2,2,0),COLOR00FFFF;
DRAWTEXT(B友尾盘,1.6,' ←尾盘'),COLOR00FFFF;
买入:=REF(C,BARSLAST(B友尾盘)),COLORYELLOW,NODRAW;
最高:=REF(H,BARSLAST(B友尾盘)-1),COLORFF00FF,NODRAW;
成绩:=((最高-买入)/买入)*100,COLORRED,NODRAW;
STICKLINE(REF(B友尾盘=1,1) AND 最高/买入>=1.01,0,0.50,2,0),COLORRED;
DRAWICON(REF(B友尾盘=1,1) AND 成绩>=1,0.68,5);
DRAWICON(REF(B友尾盘=1,1) AND 成绩<1,0.68,4);
DRAWNUMBER(REF(B友尾盘,1),0.85,成绩),COLORYELLOW;