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);
卖出:CROSS(LH,RSI);
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);
卖出:CROSS(LH,RSI);