OPEN-SOURCE SCRIPT

BARTU V1 MACD-RSI

//version=6
indicator('MACD ve RSI', overlay = false)

// MACD hesaplama
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)
macdHist = macdLine - signalLine

// RSI hesaplama
rsiLength = 14
rsiValue = ta.rsi(close, rsiLength)

// MACD çizimleri
hline(0, 'Sıfır Çizgisi', color = color.gray)
plot(macdLine, color = color.blue, title = 'MACD Hattı')
plot(signalLine, color = color.red, title = 'Sinyal Hattı')
plot(macdHist, color = color.green, style = plot.style_histogram, title = 'MACD Histogramı')

// RSI çizimleri
rsiOverbought = 70
rsiOversold = 30
hline(rsiOverbought, 'Aşırı Alım', color = color.red)
hline(rsiOversold, 'Aşırı Satım', color = color.green)
plot(rsiValue, color = color.orange, title = 'RSI')

// Arka Plan Renkleri
bgcolor(rsiValue > rsiOverbought ? color.new(color.red, 90) : na)
bgcolor(rsiValue < rsiOversold ? color.new(color.green, 90) : na)
Candlestick analysisChart patterns

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer