摆荡指标,当RSI1上穿80数值时,注意规避冲高风险,当RSI下穿20数值时,有望见阶段性底部.
STICKLINE(1>0,22,20,4.5,1),colorgreen;
STICKLINE(2>0,78,80,4.5,1),colorred;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100,colorwhite;
RSI2:SMA(MAX(CLOSE-LC,0),21,1)/SMA(ABS(CLOSE-LC),21,1)*100;