PROTECTED SOURCE SCRIPT
Momentum Burst Detector

//version=5
indicator("Momentum Burst Detector", overlay=true)
// Inputs
length = input.int(20, title="Consolidation Length")
volMultiplier = input.float(2.0, title="Volume Spike Multiplier")
rsiThreshold = input.int(60, title="RSI Threshold")
breakoutBuffer = input.float(0.5, title="Breakout Buffer (%)")
// Calculations
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
priceRange = highestHigh - lowestLow
breakoutLevel = highestHigh + (priceRange * breakoutBuffer / 100)
volumeAvg = ta.sma(volume, length)
rsi = ta.rsi(close, 14)
// Conditions
isBreakout = close > breakoutLevel
isVolumeSpike = volume > volumeAvg * volMultiplier
isMomentum = rsi > rsiThreshold
momentumBurst = isBreakout and isVolumeSpike and isMomentum
// Plotting
plotshape(momentumBurst, title="Momentum Burst", location=location.abovebar, color=color.orange, style=shape.triangleup, size=size.small)
bgcolor(momentumBurst ? color.new(color.orange, 85) : na)
indicator("Momentum Burst Detector", overlay=true)
// Inputs
length = input.int(20, title="Consolidation Length")
volMultiplier = input.float(2.0, title="Volume Spike Multiplier")
rsiThreshold = input.int(60, title="RSI Threshold")
breakoutBuffer = input.float(0.5, title="Breakout Buffer (%)")
// Calculations
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
priceRange = highestHigh - lowestLow
breakoutLevel = highestHigh + (priceRange * breakoutBuffer / 100)
volumeAvg = ta.sma(volume, length)
rsi = ta.rsi(close, 14)
// Conditions
isBreakout = close > breakoutLevel
isVolumeSpike = volume > volumeAvg * volMultiplier
isMomentum = rsi > rsiThreshold
momentumBurst = isBreakout and isVolumeSpike and isMomentum
// Plotting
plotshape(momentumBurst, title="Momentum Burst", location=location.abovebar, color=color.orange, style=shape.triangleup, size=size.small)
bgcolor(momentumBurst ? color.new(color.orange, 85) : na)
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.