N1:=21;
RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*1;
中K:=SMA(RSV,4,1);
中D:=SMA(中K,9,1);
FILLRGN(中K,中D,中K>=中D),COLOR0000EF;
FILLRGN(中K,中D,中K<中D),COLORFF8800{COLOR33AA33};
{短期选跌}
下跌:=(C-MA(C,30))/MA(C,30)*100<-7;
{乖离底部}
乖离:=EMA(100*(C-LLV(LOW,37))/(HHV(H,37)-LLV(LOW,37)),3)*1;
乖離底部尾盤進:CROSS(乖离,10) AND 下跌,LINESTICK,COLORFF8800;