Untitled

 avatar
unknown
plain_text
a year ago
708 B
13
Indexable
//@version=5
indicator("RSI with EMA", overlay = true)

// RSI Parametreleri
rsi_length = input.int(22, title="RSI Period")
ema_length = input.int(66, title="EMA Period")

// RSI Hesaplama
rsi = ta.rsi(close, rsi_length)

// RSI'nın Üssel Hareketli Ortalaması (EMA)
ema_rsi = ta.ema(rsi, ema_length)

// RSI ve EMA'nın Görselleştirilmesi
plot(rsi, color=color.blue, linewidth=2, title="RSI")
plot(ema_rsi, color=color.red, linewidth=2, title="EMA of RSI")

// RSI'nın aşırı alım/aşırı satım bölgelerini belirleme
hline(70, "Overbought", color=color.red)
hline(30, "Oversold", color=color.green)

// RSI değerlerini gösterme
hline(50, "Middle Line", color=color.gray)
Editor is loading...
Leave a Comment