说明:短线进出。以“进”=1为选股条件。当“进”“出”出现时进行买卖。好用不用说。《有进有出》:
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;