P:=6;LL:=20;LH:=80;LC:=REF(CLOSE,1);rsi:=SMA(maX(CLOSE-LC,0),P,1)/SMA(Abs(CLOSE-LC),P,1)*100;买入:crOSS(RSI,LL);