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)
Script protegido
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.