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 protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.