{底进高出}
N:=5;
趋势线:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORWHITE,LINETHICK1;
下线:15,COLORGREEN;
买入: CROSS(趋势线,下线);
STICKLINE(买入=1,15,60,2,0),COLORRED;
DRAWTEXT(买入=1,75,'买'),COLORRED;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
DRAWTEXT(趋势线>80,110,'卖'),COLOREE82EE;
天线:120,COLORWHITE,LINETHICK0;
顶线:100,COLORGREEN;
底线:0,COLORRED;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
底:CROSS(J,REF(J+0.01,1)) AND X AND J<19;
STICKLINE(底,0,-5,3,1),COLORYELLOW;
DRAWTEXT(底,-8,'底');