PROTECTED SOURCE SCRIPT
Golden Sniper Entry Pro v1.4.2 – Hot Liquidity Awareness Edition

//version=5
indicator("Golden Sniper Entry Pro v1.4.2 – Hot Liquidity Awareness Edition", overlay=true, max_bars_back=500)
// === INPUTS ===
showSignals = input.bool(true, "Show Entry Signals")
showZones = input.bool(true, "Show Fibonacci Zone")
showTargets = input.bool(true, "Show TP/SL Levels")
showPatterns = input.bool(true, "Show Patterns")
showSMA = input.bool(true, "Show SMA Levels")
showPower = input.bool(true, "Show Buyer/Seller Strength")
minRSI = input.int(45, "RSI Min", minval=0, maxval=100)
maxRSI = input.int(51, "RSI Max", minval=0, maxval=100)
zzDepth = input.int(12, "ZigZag Depth", minval=3)
// === INDICATORS ===
rsi = ta.rsi(close, 14)
body = math.abs(close - open)
fullrange = high - low
isRejection = body < fullrange * 0.4
bop = (close - open) / (high - low + 0.001)
// SMA
sma10 = ta.sma(close, 10)
sma20 = ta.sma(close, 20)
sma50 = ta.sma(close, 50)
sma100 = ta.sma(close, 100)
sma200 = ta.sma(close, 200)
// === ZigZag and Fibonacci
swingHigh = ta.highest(high, zzDepth)
swingLow = ta.lowest(low, zzDepth)
fib618 = swingHigh - (swingHigh - swingLow) * 0.618
fib786 = swingHigh - (swingHigh - swingLow) * 0.786
inGoldenZone = close <= fib618 and close >= fib786
rsiInRange = rsi >= minRSI and rsi <= maxRSI
// === Score Logic
score = 0
score += inGoldenZone ? 1 : 0
score += rsiInRange ? 1 : 0
score += isRejection ? 1 : 0
score += bop > 0 ? 1 : 0
score += close > sma20 ? 1 : 0
// === Hot Liquidity Detection
avgVol = ta.sma(volume, 20)
hotBuy = bop > 0 and volume > avgVol
hotSell = bop < 0 and volume > avgVol
// === TP/SL
tp = score >= 4 ? close + (swingHigh - swingLow) * 0.5 : na
sl = score >= 4 ? swingLow : na
// === Bubble Signal Logic
if showSignals
if score == 3 and hotBuy
label.new(bar_index, low - syminfo.mintick * 15, "B3", style=label.style_label_up, textcolor=color.white, size=size.small, color=color.new(color.green, 40))
if score == 3 and hotSell
label.new(bar_index, high + syminfo.mintick * 15, "S3", style=label.style_label_down, textcolor=color.white, size=size.small, color=color.new(color.red, 40))
if score >= 4
label.new(bar_index, low - syminfo.mintick * 15, "B" + str.tostring(score), style=label.style_label_up, textcolor=color.white, size=size.small, color=color.green)
// === Bar Color
barcolor(score == 3 and hotBuy ? color.new(color.yellow, 30) : score >= 4 ? color.green : na)
// === TP/SL Lines
plot(showTargets and not na(tp) ? tp : na, title="TP", color=color.green, style=plot.style_linebr)
plot(showTargets and not na(sl) ? sl : na, title="SL", color=color.red, style=plot.style_linebr)
// === SMA
plot(showSMA ? sma10 : na, color=color.gray, title="SMA10")
plot(showSMA ? sma20 : na, color=color.blue, title="SMA20")
plot(showSMA ? sma50 : na, color=color.orange, title="SMA50")
plot(showSMA ? sma100 : na, color=color.purple, title="SMA100")
plot(showSMA ? sma200 : na, color=color.red, title="SMA200")
// === Power Plot
plot(showPower ? bop : na, title="Buyer/Seller Strength", style=plot.style_columns, color=bop >= 0 ? color.green : color.red)
// === Alerts
alertcondition(score == 3 and hotBuy, title="Watch Hot Buy", message="Watch Signal: Hot Buy (B3)")
alertcondition(score == 3 and hotSell, title="Watch Hot Sell", message="Watch Signal: Hot Sell (S3)")
alertcondition(score >= 4, title="Strong Buy", message="Confirmed Buy Signal (B4 or more)")
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.