优化rsi指标,作为买卖参考。
用法同rsi指标,选择强势股。
N1=13;
N2:=5;
LC := REF(CLOSE,1);
RSI$1:SMA(MAX(CLOSE-LC,0),n1,1)/SMA(ABS(CLOSE-LC),n1,1)*100;
RSI$11:=EMA(MAX(CLOSE-LC,0),n1)/EMA(ABS(CLOSE-LC),n1)*100;
RSI$2:=MA(RSI$1,n2);
j:=2*RSI$1-2*RSI$2;
PARTLINE(RSI$2,RSI$2>=RSI$2[1],colorred,RSI$2<RSI$2[1],colorgreen),LINETHICK2;
a:30,POINTDOT;
中:50,LINETHICK2;
d:70,POINTDOT;