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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明