//@version=4
study("Boğa Ya Dönecek Hisseler", shorttitle="BYDH", overlay=true)
length = input(14, title="RSI Uzunluk")
rsi_threshold = input(30, title="RSI Eşik Değeri")
sma_length = input(50, title="Basit Hareketli Ortalama Uzunluk")
rsi = rsi(close, length)
sma = sma(close, sma_length)
bullish_divergence = na(rsi) ? na : (rsi < sma and rsi > sma)
barcolor(bullish_divergence ? color.green : na, transp=80)
bgcolor(bullish_divergence ? color.green : na, transp=70)
hline(rsi_threshold, "RSI Eşik", color.red)
alertcondition(bullish_divergence, "Boğa ya dönecek hisse bulundu", "Boğa ya dönecek hisse bulundu")
study("Boğa Ya Dönecek Hisseler", shorttitle="BYDH", overlay=true)
length = input(14, title="RSI Uzunluk")
rsi_threshold = input(30, title="RSI Eşik Değeri")
sma_length = input(50, title="Basit Hareketli Ortalama Uzunluk")
rsi = rsi(close, length)
sma = sma(close, sma_length)
bullish_divergence = na(rsi) ? na : (rsi < sma and rsi > sma)
barcolor(bullish_divergence ? color.green : na, transp=80)
bgcolor(bullish_divergence ? color.green : na, transp=70)
hline(rsi_threshold, "RSI Eşik", color.red)
alertcondition(bullish_divergence, "Boğa ya dönecek hisse bulundu", "Boğa ya dönecek hisse bulundu")