Pinescript V5-RSI从超卖到50点进入信号



你好,我需要一些关于我构建的指示器的帮助。Pinescript v5。

我有一个rsi,有超买、超卖和中线。我试图编码一个输入信号,它只显示rsi线是否首先进入超卖区域,然后穿过中线。

因此,只有当rsi越过中线时,进入信号才会显示,但在此之前,它必须已经越过超卖区域。

感谢所有能帮助Iv的人,Iv几天来一直在努力寻找答案😂

rsi = ta.rsi(close, 14)
rsilb = 25
rsimb = 50
rsiub = 75
buy = ta.lowest(rsi, 10) <= rsilb and ta.crossover(rsi, rsimb)
// rsi was below lower band in the last 10 candles and is crossing over middle band
sell = ta.highest(rsi, 10) >= rsiub and ta.crossunder(rsi, rsimb)
//rsi was above upperband in the last 10 candles and is crossing below middle band

最新更新