OPEN-SOURCE SCRIPT

Acl

51
//version=5
indicator("Breakout Momentum (LONG)", overlay=true)

// --- Conditions ---
rsiValue = ta.rsi(close, 14)
ema20 = ta.ema(close, 20)
volSMA10 = ta.sma(volume, 10)
highest20 = ta.highest(high, 20)

longCondition = close > highest20 and
volume > 2 * volSMA10 and
rsiValue > 55 and
close > ema20 and
close > 50 and
volume > 100000

// --- Plot signals on chart ---
plotshape(longCondition, title="Breakout Momentum", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.large, text="LONG")

// --- Alerts ---
if (longCondition)
alert("📈 Breakout Momentum (LONG) signal detected!", alert.freq_once_per_bar_close)

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.