BIST:ESCOM   ESCORT TEKNOLOJI
//@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")
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.