VAR2Z:=(C-LLV(L,100))/(HHV(H,100)-LLV(L,100))*200;
VAR3Z:=SMA(VAR2Z,3,1);
线:=SMA(VAR3Z,3,1);
中线:=EMA((VARZ-LLV(VARZ,60))/(HHV(VARZ,60)-LLV(VARZ,60)),2)*100;
HAN:=1;
STICKLINE(线<30 AND 中线<15,0,100,25,0)*HAN,COLOR990060;
STICKLINE(线<30 AND 中线<15,0,90,25,0)*HAN,COLOR990061;
STICKLINE(线<30 AND 中线<15,0,80,25,0)*HAN,COLOR990062;
STICKLINE(线<30 AND 中线<15,0,70,25,0)*HAN,COLOR990063;
STICKLINE(线<30 AND 中线<15,0,60,25,0)*HAN,COLOR990064;
STICKLINE(线<30 AND 中线<15,0,50,25,0)*HAN,COLOR990065;
STICKLINE(线<30 AND 中线<15,0,40,25,0)*HAN,COLOR990066;
STICKLINE(线<30 AND 中线<15,0,30,25,0)*HAN,COLOR990067;
STICKLINE(线<30 AND 中线<15,0,30,25,0)*HAN,COLOR990068;
STICKLINE(线<30 AND 中线<15,0,20,25,0)*HAN,COLOR990069;
V3:=100-(100-3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1)+2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))
*100,20,1),15,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);
见底信号:= 3;
买入:= IF(CROSS(趋势线,见底信号),100,0);
趋势线1:= 3*SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1);
见底信号1:= 3;
买入1:= IF(CROSS(趋势线1,见底信号1),100,0);
趋势1:=V3;
趋势线2:= 3*SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,5,1),3,1);
见底信号2:= 3;
买入2:= IF(CROSS(趋势线2,见底信号2),100,0);
顶入:=STICKLINE(买入 AND 买入1 AND 买入2 AND 趋势1<10,25,80,8,0);
小:=IF(COUNT(( 趋势1<0),5)=3, -25,0) ;
顶顶A:=STICKLINE(顶入 OR 小,25,80,8,0);
顶部:=FILTER(顶顶A,25);
STICKLINE(顶部,0,100,3 ,0)*HAN,COLOR000077;
STICKLINE(顶部,0,100,2.5,0)*HAN,COLOR000099;
STICKLINE(顶部,0,100,1.9,0)*HAN,COLOR0000BB;
STICKLINE(顶部,0,100,0.4,0)*HAN,COLOR0000FF;
DRAWTEXT(FILTER(顶部,15),58,'大底')*HAN;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
趋势:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13);
人气:=EMA(0.667*REF(趋势,1)+0.333*趋势,2);
导弹:=IF(CROSS(趋势,人气) AND 人气<5 AND 趋势<5,30,0);
手:=IF(CROSS(人气,趋势) AND 人气>85,80,0);
低吸:= IF(CROSS(趋势,人气) AND 趋势<10,20,0);
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR28:=SMA(VAR26,3,1);
波王:= SMA(VAR28,3,1);
波鬼:= SMA(波王,3,1);
底部买进:= (波王<10 AND 波鬼<10 AND 波王>REF(波王,1) ) ;
底部:=FILTER(底部买进,4);
VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
大底:=STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,0,7,0);
江A:=STICKLINE(底部=1 OR 导弹=30 OR 大底=1 OR 低吸=20 , 0,25,1,0);
部A:=FILTER(江A,18);
V1:=EXIST(C/REF(C,1)>1.06,100) AND DYNAINFO(7)>0 ;
风BA:=STICKLINE(部A=1 AND V1 AND VOL>0,0,100,5,0),COLORLIGREEN ;
DRAWTEXT(FILTER(风BA,15),48,'.小底')*HAN,COLORGREEN;
STICKLINE(风BA,0,90,3.1,0)*HAN,COLOR005500;
STICKLINE(风BA,0,90,2.6,0)*HAN,COLOR007700;
STICKLINE(风BA,0,90,2.1,0)*HAN,COLOR009900;
STICKLINE(风BA,0,90,1.5,0)*HAN,COLOR00BB00;
STICKLINE(风BA,0,90,0.9,0)*HAN,COLOR00DD00;
STICKLINE(风BA,0,90,0.3,0)*HAN,COLOR00FF00;