Binance Coin / TetherUS

Hma rsi

6
//version=5
indicator("HMA + RSI Buy/Sell Signal", overlay=true)

// Parameter
hma_period = 21
rsi_period = 14
rsi_oversold = 30
rsi_overbought = 70

// Hitung HMA
hma = ta.hma(close, hma_period)

// Hitung RSI
rsi = ta.rsi(close, rsi_period)

// Sinyal Buy (Green Line)
buy_signal = ta.crossover(rsi, rsi_oversold) and hma > hma[1]

// Sinyal Sell (Red Line)
sell_signal = ta.crossunder(rsi, rsi_overbought) and hma < hma[1]

// Gambar garis hijau untuk sinyal buy
plot(buy_signal ? low - 0.5 : na, style=plot.style_line

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน