{汰弱留强}
V1:=LLV(LOW,10);
V2:=HHV(H,25);
指导线:EMA((C-V1)/(V2-V1)*4,4),LINETHICK1;
M2:MA(指导线,2),COLORYELLOW;
DRAWBAND(指导线,RGB(250,10,10),M2,RGB(10,250,10));
NOTEXT1:3.5,LINETHICK1,COLORGREEN,DOTLINE;
NOTEXT2:3.1,LINETHICK1,COLORCYAN,DOTLINE;
NOTEXT3:2,LINETHICK1,COLORWHITE,DOTLINE;
NOTEXT4:1.3,LINETHICK1,COLORMAGENTA,DOTLINE;
NOTEXT5:0.3,LINETHICK1,COLORRED,DOTLINE;
DRAWTEXT(ISLASTBAR=1,IF(指导线>=0,3.6,3.7),' 高抛'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(指导线>=0,3.2,3.3),' 警戒'),COLORCYAN;
DRAWTEXT(ISLASTBAR=1,IF(指导线>=0,2.1,2.2),' 强势'),COLORWHITE;
DRAWTEXT(ISLASTBAR=1,IF(指导线>=0,1.4,1.5),' 准强'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR=1,IF(指导线>=0,0.4,0.5),' 低吸'),COLORRED;
VC:=(2*C+H+L)/4;
VD:=LLV(L,3);
VE:=HHV(H,3);
V12:=EMA((VC-VD)/(VE-VD)*100,5);
V13:=EMA(V12,2);
IF(V12>V13,指导线,DRAWNULL),COLORYELLOW,LINETHICK1;
主力2:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);
散户2:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);
DRAWICON(CROSS(主力2,散户2) AND 主力2<0 AND 散户2<0,指导线,1);
LC1:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC1),0),3,1) / SMA(ABS((CLOSE - LC1)),3,1)) * 100);
DRAWICON(CROSS(88,RSI),指导线,2);
AYGB7:=C-REF(C,1);
AYGB8:=100*EMA(EMA(AYGB7,6),6)/EMA(EMA(ABS(AYGB7),6),6);
买YGB:=LLV(AYGB8,2)=LLV(AYGB8,7) AND COUNT(AYGB8<0,2) AND CROSS(AYGB8,MA(AYGB8,2));
DRAWICON(FILTER(买YGB=1,5),指导线,1);