簡體   English   中英

Pinescript V5 - RSI 從超賣到穿越 50 入場信號

[英]Pinescript V5 - RSI from oversold to crossing 50 entry signal

您好,我需要一些關於我建立的指標的幫助。 Pinescript v5。

我有一個超買、超賣和中線的 rsi。 我正在嘗試編寫一個僅顯示 rsi 線是否首先進入超賣區域然后越過中線的入場信號。

因此,入場信號僅在 rsi 穿過中線時顯示,但它必須在此之前穿過超賣區域。

感謝任何可以幫助我嘗試尋找答案幾天的人

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM