OPEN-SOURCE SCRIPT

MACD Alış/Satış Siqnalları

//version=5
indicator("MACD Alış/Satış Siqnalları", shorttitle="MACD Signals", overlay=true)

// MACD və Siqnal Xətlərinin Hesablanması
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)

// Alış və Satış Şərtləri
buySignal = (macdLine > signalLine) and (macdLine[1] <= signalLine[1]) and (macdLine > 0)
sellSignal = (macdLine < signalLine) and (macdLine[1] >= signalLine[1]) and (macdLine < 0)

// Siqnalların Vizual Göstərilməsi
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, text="Alış")
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="Satış")
Moving Average Convergence / Divergence (MACD)

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