OPEN-SOURCE SCRIPT
Momentum Breakout Signal

//version=5
indicator("Momentum Breakout Signal", overlay=true)
// === Breakout Logic ===
length = 20 // Lookback for recent high
recentHigh = ta.highest(high, length)
// === Breakout Condition: Close > prior high
priceBreakout = close > recentHigh[1]
// === Volume Spike Confirmation ===
volumeSMA = ta.sma(volume, 20)
volumeSpike = volume > volumeSMA * 1.3 // Customize sensitivity
// === Optional: Filter for strong candles only
isGreen = close > open
decentRange = (high - low) > (close * 0.003)
// === Final Signal Logic ===
signal = priceBreakout and volumeSpike and isGreen and decentRange
plotshape(signal, title="Breakout Signal", location=location.abovebar, color=color.orange, style=shape.triangleup, size=size.small)
alertcondition(signal, title="Momentum Breakout Alert", message="🚀 {{ticker}} breakout confirmed at {{close}}")
indicator("Momentum Breakout Signal", overlay=true)
// === Breakout Logic ===
length = 20 // Lookback for recent high
recentHigh = ta.highest(high, length)
// === Breakout Condition: Close > prior high
priceBreakout = close > recentHigh[1]
// === Volume Spike Confirmation ===
volumeSMA = ta.sma(volume, 20)
volumeSpike = volume > volumeSMA * 1.3 // Customize sensitivity
// === Optional: Filter for strong candles only
isGreen = close > open
decentRange = (high - low) > (close * 0.003)
// === Final Signal Logic ===
signal = priceBreakout and volumeSpike and isGreen and decentRange
plotshape(signal, title="Breakout Signal", location=location.abovebar, color=color.orange, style=shape.triangleup, size=size.small)
alertcondition(signal, title="Momentum Breakout Alert", message="🚀 {{ticker}} breakout confirmed at {{close}}")
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.