a1:=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);
a2:=ref(a1,1);
进:=cross(a1,a2);
出:=cross(a2,a1);
drawtext(进,l*0.99,'进'),colorred;
drawtext(出,h*1.02,'出'),coloryellow;