Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TradingView MACD Crossover Arrows โ€“ Clean Buy/Sell Signals with Alerts

Shield

Well-known member
Staff member
Administrative
Register
Joined
Jul 7, 2025
Messages
81
Credits
3,012
1752774413058.png

๐Ÿ“ Short Description:​


This script displays Buy and Sell arrows based on MACD line crossovers, helping traders spot entry and exit points with clarity. Ideal for trend-following strategies on any timeframe.


๐Ÿ“Œ Created by Shield
๐ŸŒ Forum: forexindicatorzone.com
๐Ÿ“ฃ Telegram: t.me/Mt4indicatorsByshield

There are 2 script , copy and paste it and ready to use.

//@version=5
indicator("MACD Crossover Arrows", overlay=true)
// =========================
// ๐Ÿ“Œ Indicator by Shield
// ๐ŸŒ Forum: https://forexindicatorzone.com/
// ๐Ÿ“ฃ Telegram: https://t.me/Mt4indicatorsByshield
// =========================
[macdLine, signalLine, hist] = ta.macd(close, 12, 26, 9)
bullCross = ta.crossover(macdLine, signalLine)
bearCross = ta.crossunder(macdLine, signalLine)
plotshape(bullCross, title="Buy Arrow", location=location.belowbar, style=shape.labelup, color=color.green, size=size.small, text="Buy", textcolor=color.white, offset=-1)
plotshape(bearCross, title="Sell Arrow", location=location.abovebar, style=shape.labeldown, color=color.red, size=size.small, text="Sell", textcolor=color.white, offset=-1)

//@version=5
indicator("MACD Subwindow (with Histogram)", overlay=false)
fastLen = input.int(12, title="Fast EMA")
slowLen = input.int(26, title="Slow EMA")
signalLen = input.int(9, title="Signal Smoothing")
[macdLine, signalLine, hist] = ta.macd(close, fastLen, slowLen, signalLen)
plot(macdLine, title="MACD Line", color=color.green, linewidth=2)
plot(signalLine, title="Signal Line", color=color.orange, linewidth=2)
plot(hist, title="Histogram", style=plot.style_columns, color=hist >= 0 ? color.lime : color.red)
 
Back
Top