PROTECTED SOURCE SCRIPT
Sniper Pro v4.1.5 – True Live Engine

//version=5
indicator("Sniper Pro v4.1.5 – True Live Engine", overlay=true)
// === INPUTS ===
minScore = input.int(3, "Min Conditions for Entry", minval=1, maxval=5)
filterSideways = input.bool(true, "Block in Sideways?")
showDelta = input.bool(true, "Show Delta Counter?")
showSMA10 = input.bool(true, "Show SMA10")
showSMA20 = input.bool(true, "Show SMA20")
showSMA50 = input.bool(true, "Show SMA50")
showSMA100 = input.bool(true, "Show SMA100")
showSMA200 = input.bool(true, "Show SMA200")
showVWAP = input.bool(true, "Show VWAP")
showGoldenZone = input.bool(true, "Show Golden Zone?")
callColor = input.color(color.green, "CALL Color")
putColor = input.color(color.red, "PUT Color")
watchBuyCol = input.color(color.new(color.green, 70), "Watch Buy Color")
watchSellCol = input.color(color.new(color.red, 70), "Watch Sell Color")
// === INDICATORS ===
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)
vwapVal = ta.vwap
// === GOLDEN ZONE FROM RECENT RANGE ===
waveHigh = ta.highest(high, 20)
waveLow = ta.lowest(low, 20)
waveRange = waveHigh - waveLow
goldenTop = waveHigh - waveRange * 0.618
goldenBot = waveHigh - waveRange * 0.786
inGoldenZone = close >= goldenBot and close <= goldenTop
// === DELTA ===
delta = (close - open) * volume
normalizedDelta = volume != 0 ? delta / volume : 0
// === SIDEWAYS FILTER ===
range20 = ta.highest(high, 20) - ta.lowest(low, 20)
atr = ta.atr(14)
isSideways = range20 < atr * 1.5
block = filterSideways and isSideways
// === PRICE ACTION ===
hammer = close > open and (math.min(open, close) - low) > math.abs(close - open) * 1.5
bullishEngulf = close > open and close[1] < open[1] and close > open[1] and open < close[1]
shootingStar = close < open and (high - math.max(open, close)) > math.abs(close - open) * 1.5
bearishEngulf = close < open and close[1] > open[1] and close < open[1] and open > close[1]
// === SCORE SYSTEM (Live per bar) ===
buyScore = (inGoldenZone ? 1 : 0) + (normalizedDelta > 0.2 ? 1 : 0) + ((hammer or bullishEngulf) ? 1 : 0) + (close > sma20 ? 1 : 0)
sellScore = (inGoldenZone ? 1 : 0) + (normalizedDelta < -0.2 ? 1 : 0) + ((shootingStar or bearishEngulf) ? 1 : 0) + (close < sma20 ? 1 : 0)
watchBuy = buyScore == (minScore - 1) and not block
watchSell = sellScore == (minScore - 1) and not block
call = buyScore >= minScore and not block
put = sellScore >= minScore and not block
// === COLORS ===
barcolor(call ? callColor : put ? putColor : watchBuy ? watchBuyCol : watchSell ? watchSellCol : na)
// === LABELS ===
if call
label.new(bar_index, low, "CALL", style=label.style_label_up, size=size.normal, color=callColor, textcolor=color.white)
if put
label.new(bar_index, high, "PUT", style=label.style_label_down, size=size.normal, color=putColor, textcolor=color.white)
if watchBuy
label.new(bar_index, low, "B3", style=label.style_label_up, size=size.small, color=watchBuyCol, textcolor=color.white)
if watchSell
label.new(bar_index, high, "S4", style=label.style_label_down, size=size.small, color=watchSellCol, textcolor=color.white)
// === DELTA LABEL ===
deltaLabel = math.abs(delta) > 1000000 ? str.format("{0,number,#.##}M", delta / 1e6) :
math.abs(delta) > 1000 ? str.format("{0,number,#.##}K", delta / 1e3) :
str.tostring(delta, "#.##")
if showDelta
label.new(bar_index, close, deltaLabel, style=label.style_label_left, size=size.tiny, textcolor=color.white, color=delta > 0 ? color.new(color.green, 70) : color.new(color.red, 70))
// === PLOTS ===
plot(showVWAP ? vwapVal : na, title="VWAP", color=color.aqua)
plot(showGoldenZone ? goldenTop : na, title="Golden Top", color=color.yellow, style=plot.style_linebr)
plot(showGoldenZone ? goldenBot : na, title="Golden Bottom", color=color.orange, style=plot.style_linebr)
plot(showSMA10 ? sma10 : na, title="SMA10", color=color.green)
plot(showSMA20 ? sma20 : na, title="SMA20", color=color.yellow)
plot(showSMA50 ? sma50 : na, title="SMA50", color=color.orange)
plot(showSMA100 ? sma100 : na, title="SMA100", color=color.red)
plot(showSMA200 ? sma200 : na, title="SMA200", color=color.white)
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.