N:=9;
M1:=3;
M2:=3;
P:=9;
快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
慢线:=SMA(快线,M1,1);
开空:=SMA(慢线,M2,1);
拐点:IF(BARSLAST(crOSS(慢线,开空))<P AND CROSS(慢线,开空) AND 慢线<20,90,0),STICK,COLORFF937F;
STICKLINE(拐点,0,90,1,0),COLORFF937F;
LC:=REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(Abs(CLOSE-LC),4.1,1)*100;
反弹:CROSS(RSI,11)*80,COLORYELLOW;
DRAWTEXT(反弹,85,'准'),COLOR66FFCC;