OPEN-SOURCE SCRIPT

Trend Dönüş Teyidi (Sade)

52
//version=5
indicator("Trend Dönüş Teyidi (Sade)", overlay=true)

// 200MA
ma200 = ta.sma(close, 200)

// MACD hesaplama
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
signalLine = ta.ema(macdLine, 9)
macdAboveZero = macdLine > 0
macdBullCross = ta.crossover(macdLine, signalLine)

// Higher Low (swing low yapısı)
left = 3
right = 3
swingLow = ta.lowest(left + right + 1)[right] == low[right]
higherLow = swingLow and low[right] > low[right + left + 1]

// Trend teyidi şartları
trendConfirmed = close > ma200 and macdBullCross and macdAboveZero and higherLow

// İşaret
plotshape(trendConfirmed, title="Trend Dönüş Onayı", style=shape.labelup,
color=color.new(color.green, 0), size=size.small,
text="Trend ↑", textcolor=color.white, location=location.belowbar)

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.