你好,我需要一些帮助,我已经建立了一个指示器,请。v5.
我有一个rsi与超买,超卖和中线。我试图编码一个输入信号,它只显示rsi线是否首先移动到超卖区域,然后穿过中线。
因此,只有当rsi越过中线时,才会显示进入信号,但在此之前,它必须越过超卖区域。
感谢任何能帮助Iv的人几天来一直试图找到答案
发布于 2022-09-08 15:06:18
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 bandhttps://stackoverflow.com/questions/73316116
复制相似问题