PROTECTED SOURCE SCRIPT
Sniper Pro v4.6 – True Live Reactive Edition

//version=5
indicator("Sniper Pro v4.6 – True Live Reactive Edition", overlay=true)
// === INPUTS ===
showInfoBubble = input.bool(true, "Show Live Info Bubble")
depth = input.int(12, "Golden Zone Depth")
// === INDICATORS ===
sma20 = ta.sma(close, 20)
vwapVal = ta.vwap
// === GOLDEN ZONE ===
ph = ta.pivothigh(high, depth, depth)
pl = ta.pivotlow(low, depth, depth)
var float lastHigh = na
var float lastLow = na
lastHigh := not na(ph) ? ph : lastHigh[1]
lastLow := not na(pl) ? pl : lastLow[1]
fullrange = lastHigh - lastLow
goldenTop = lastHigh - fullrange * 0.618
goldenBot = lastHigh - fullrange * 0.786
inGoldenZone = close >= goldenBot and close <= goldenTop
// === DELTA ===
delta = (close - open) * volume
absDelta = math.abs(delta)
deltaStr = absDelta > 1e6 ? str.tostring(delta / 1e6, "#.##") + "M" : absDelta > 1e3 ? str.tostring(delta / 1e3, "#.##") + "K" : str.tostring(delta, "#.##")
// === STRENGTH ===
body = math.abs(close - open)
wick = high - low
strength = body / (wick + 1e-10)
strengthLevel = strength > 0.8 ? "5/5" : strength > 0.6 ? "4/5" : strength > 0.4 ? "3/5" : strength > 0.2 ? "2/5" : "1/5"
// === PATTERN ===
bullEngulf = close > open and close[1] < open[1] and close > open[1] and open < close[1]
bearEngulf = close < open and close[1] > open[1] and close < open[1] and open > close[1]
hammer = close > open and (open - low) > 1.5 * body
shootingStar = open > close and (high - open) > 1.5 * body
morningStar = close[2] < open[2] and close[1] < open[1] and close > ((open[2] + close[2]) / 2)
eveningStar = close[2] > open[2] and close[1] > open[1] and close < ((open[2] + close[2]) / 2)
pattern = bullEngulf ? "Bull Engulfing" : bearEngulf ? "Bear Engulfing" : hammer ? "Hammer" : shootingStar ? "Shooting Star" : morningStar ? "Morning Star" : eveningStar ? "Evening Star" : ""
// === LIVE BUBBLE ===
var label bubble = na
if na(bubble)
bubble := label.new(bar_index, high, "", style=label.style_label_up, size=size.small, textcolor=color.white, color=color.new(color.gray, 85))
if showInfoBubble
label.set_xy(bubble, bar_index, high + syminfo.mintick * 20)
label.set_text(bubble,"O: " + str.tostring(open, "#.##") +"\nH: " + str.tostring(high, "#.##") +"\nL: " + str.tostring(low, "#.##") +"\nC: " + str.tostring(close, "#.##") +"\nΔ: " + deltaStr +(pattern != "" ? "\nPattern: " + pattern : "") +"\nPower: " + strengthLevel)
// === PLOTS ===
plot(vwapVal, title="VWAP", color=color.aqua)
plot(goldenTop, title="Golden Top", color=color.yellow)
plot(goldenBot, title="Golden Bottom", color=color.orange)
indicator("Sniper Pro v4.6 – True Live Reactive Edition", overlay=true)
// === INPUTS ===
showInfoBubble = input.bool(true, "Show Live Info Bubble")
depth = input.int(12, "Golden Zone Depth")
// === INDICATORS ===
sma20 = ta.sma(close, 20)
vwapVal = ta.vwap
// === GOLDEN ZONE ===
ph = ta.pivothigh(high, depth, depth)
pl = ta.pivotlow(low, depth, depth)
var float lastHigh = na
var float lastLow = na
lastHigh := not na(ph) ? ph : lastHigh[1]
lastLow := not na(pl) ? pl : lastLow[1]
fullrange = lastHigh - lastLow
goldenTop = lastHigh - fullrange * 0.618
goldenBot = lastHigh - fullrange * 0.786
inGoldenZone = close >= goldenBot and close <= goldenTop
// === DELTA ===
delta = (close - open) * volume
absDelta = math.abs(delta)
deltaStr = absDelta > 1e6 ? str.tostring(delta / 1e6, "#.##") + "M" : absDelta > 1e3 ? str.tostring(delta / 1e3, "#.##") + "K" : str.tostring(delta, "#.##")
// === STRENGTH ===
body = math.abs(close - open)
wick = high - low
strength = body / (wick + 1e-10)
strengthLevel = strength > 0.8 ? "5/5" : strength > 0.6 ? "4/5" : strength > 0.4 ? "3/5" : strength > 0.2 ? "2/5" : "1/5"
// === PATTERN ===
bullEngulf = close > open and close[1] < open[1] and close > open[1] and open < close[1]
bearEngulf = close < open and close[1] > open[1] and close < open[1] and open > close[1]
hammer = close > open and (open - low) > 1.5 * body
shootingStar = open > close and (high - open) > 1.5 * body
morningStar = close[2] < open[2] and close[1] < open[1] and close > ((open[2] + close[2]) / 2)
eveningStar = close[2] > open[2] and close[1] > open[1] and close < ((open[2] + close[2]) / 2)
pattern = bullEngulf ? "Bull Engulfing" : bearEngulf ? "Bear Engulfing" : hammer ? "Hammer" : shootingStar ? "Shooting Star" : morningStar ? "Morning Star" : eveningStar ? "Evening Star" : ""
// === LIVE BUBBLE ===
var label bubble = na
if na(bubble)
bubble := label.new(bar_index, high, "", style=label.style_label_up, size=size.small, textcolor=color.white, color=color.new(color.gray, 85))
if showInfoBubble
label.set_xy(bubble, bar_index, high + syminfo.mintick * 20)
label.set_text(bubble,"O: " + str.tostring(open, "#.##") +"\nH: " + str.tostring(high, "#.##") +"\nL: " + str.tostring(low, "#.##") +"\nC: " + str.tostring(close, "#.##") +"\nΔ: " + deltaStr +(pattern != "" ? "\nPattern: " + pattern : "") +"\nPower: " + strengthLevel)
// === PLOTS ===
plot(vwapVal, title="VWAP", color=color.aqua)
plot(goldenTop, title="Golden Top", color=color.yellow)
plot(goldenBot, title="Golden Bottom", color=color.orange)
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.