Indicator · Pine Script v6 · On the chart

Crypto Sniper 1H

by balax-studio· code credited to YSR_MONSTER

A multi-timeframe crypto signal indicator designed for the 1-hour chart.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code143
Settings5inputs
LicenceNone statedfile: MPL-2.0
Last update3 months ago8 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

143 lines of Pine Script v6 from pine_scripts/crypto_10_sniper.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

crypto_10_sniper.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © YSR_MONSTER

//@version=6
indicator("KRİPTO 10: KESKİN NİŞANCI (SNIPER) 1H", overlay=true, max_labels_count=500)

// ==============================================================================
// 1. KULLANICI GİRDİLERİ (INPUTS)
// ==============================================================================
grp_mtf   = "MTF Ayarları"
grp_filters = "Filtre Ayarları"

timeframe_15m = input.timeframe("15", title="Alt Zaman Dilimi (Willy)", group=grp_mtf)
timeframe_4h  = input.timeframe("240", title="Üst Zaman Dilimi (ATR)", group=grp_mtf)
timeframe_1d  = input.timeframe("D", title="Trend Zaman Dilimi (Anti-Rekt)", group=grp_mtf)

use_btc_filter = input.bool(false, title="BTC Yön Filtresi Kullan (Simüle)", group=grp_filters, tooltip="Eğer aktif edilirse, long için BTC'nin yükseliş, short için düşüş eğiliminde olması gerekir.")
use_willy_filter = input.bool(true, title="Willy (15m) Onayı Kullan", group=grp_filters)

// ==============================================================================
// 2. GÖSTERGELER (1H - ANA GRAFİK)
// ==============================================================================
// Bollinger Bands (20, 2.0)
[bb_mid, bb_upper, bb_lower] = ta.bb(close, 20, 2.0)
bbw = bb_mid != 0 ? (bb_upper - bb_lower) / bb_mid : 0.0

// Keltner Channels (20, 1.5)
kc_mid = ta.ema(close, 20)
kc_range = ta.atr(20) * 1.5
kc_upper = kc_mid + kc_range
kc_lower = kc_mid - kc_range

// Diğer Göstergeler
rsi_14 = ta.rsi(close, 14)
ema_20 = ta.ema(close, 20)
ema_50 = ta.ema(close, 50)
vol_sma = ta.sma(volume, 20)

// ==============================================================================
// 3. ÜST ZAMAN DİLİMİ (MTF) VERİLERİ
// ==============================================================================
// Willy (Williams %R) - 15m
f_willy_15m() =>
    hh = ta.highest(high, 21)
    ll = ta.lowest(low, 21)
    willr = ((hh - close) / math.max(hh - ll, 1e-9)) * -100.0
    ta.ema(willr, 13)

willy_15m = request.security(syminfo.tickerid, timeframe_15m, f_willy_15m())

// ATR - 4H
f_atr_4h() => ta.atr(14)
atr_4h = request.security(syminfo.tickerid, timeframe_4h, f_atr_4h())
atr_pct = (atr_4h / close) * 100.0

// Anti-Rekt Trend - 1D
f_1d_trend() =>
    [ta.ema(close, 20), ta.ema(close, 50), ta.rsi(close, 14)]
[ema_20_1d, ema_50_1d, rsi_1d] = request.security(syminfo.tickerid, timeframe_1d, f_1d_trend())

// BTC Filtresi (İsteğe Bağlı)
f_btc_trend() =>
    ta.ema(close, 20) > ta.ema(close, 50)
btc_bullish = request.security("BINANCE:BTCUSDT", "60", f_btc_trend())


// ==============================================================================
// 4. FORMASYON: SWEEP / SFP (SWING FAILURE PATTERN)
// ==============================================================================
leftBars = 5
rightBars = 2
swingLow = ta.pivotlow(low, leftBars, rightBars)
swingHigh = ta.pivothigh(high, leftBars, rightBars)

var float last_sl = na
var float last_sh = na
if not na(swingLow)
    last_sl := swingLow
if not na(swingHigh)
    last_sh := swingHigh

// Sweep: Fiyat önceki swing low'un altına iner (veya high'ın üstüne çıkar) 
// fakat kapanışını o noktanın içinde yapar.
sweep_low  = low < last_sl and close > last_sl
sweep_high = high > last_sh and close < last_sh

// ==============================================================================
// 5. FORMASYON: FVG (FAIR VALUE GAP)
// ==============================================================================
// Basitleştirilmiş FVG tespiti
bullish_fvg = low > high[2] and close[1] > open[1]
bearish_fvg = high < low[2] and close[1] < open[1]

// Son 5 bar içinde FVG oluşmuş mu?
fvg_bullish_recent = ta.barssince(bullish_fvg) <= 5
fvg_bearish_recent = ta.barssince(bearish_fvg) <= 5

// ==============================================================================
// 6. SİNYAL MANTIĞI & FİLTRELER
// ==============================================================================

// --- LONG Sinyali ---
// 1. BBW > 0.1000 olmamalı (Golden Filter)
long_bbw_ok = bbw < 0.1000
// 2. Hacim ortalamanın üzerinde olmalı
long_vol_ok = volume > vol_sma * 0.5
// 3. FVG Bullish yakın zamanda oluşmuş olmalı ve Swing Low Sweep (SFP) yaşanmalı
// 4. Willy 15m dip bölgeden dönüş yapmış olmalı (örnek: -80 altı, esnek tutuldu)
long_willy_ok = not use_willy_filter or (willy_15m < -60)
long_btc_ok = not use_btc_filter or btc_bullish

long_signal = sweep_low and fvg_bullish_recent and long_bbw_ok and long_vol_ok and long_willy_ok and long_btc_ok

// --- SHORT Sinyali ---
// 1. ATR % 1.0771 den büyük olmalı (Volatility yeterli mi)
short_atr_ok = atr_pct > 1.0771
// 2. Anti-Rekt (1D): Trend güçlüyse (EMA20 > EMA50 ve RSI > 60) short açma
short_anti_rekt_block = (ema_20_1d > ema_50_1d) and (rsi_1d > 60)
short_anti_rekt_ok = not short_anti_rekt_block
// 3. Hacim ortalamanın üzerinde olmalı
short_vol_ok = volume > vol_sma * 0.5
// 4. FVG Bearish + Swing High Sweep (SFP)
short_willy_ok = not use_willy_filter or (willy_15m > -40)
short_btc_ok = not use_btc_filter or not btc_bullish

short_signal = sweep_high and fvg_bearish_recent and short_atr_ok and short_anti_rekt_ok and short_vol_ok and short_willy_ok and short_btc_ok

// ==============================================================================
// 7. GRAFİK ÜZERİNDE ÇİZİM
// ==============================================================================

// Sinyaller
plotshape(long_signal, title="Sniper Long", text="SNIPER LONG\n🚀", style=shape.labelup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.white, size=size.small)
plotshape(short_signal, title="Sniper Short", text="SNIPER SHORT\n🩸", style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.white, size=size.small)

// Swing Noktaları (Görsel Yardım)
plot(last_sl, color=color.new(color.gray, 60), style=plot.style_cross, linewidth=1, title="Son Swing Low")
plot(last_sh, color=color.new(color.gray, 60), style=plot.style_cross, linewidth=1, title="Son Swing High")

// (Opsiyonel) Bollinger Bantlarını göstermek isterseniz alt satırları aktif edebilirsiniz:
// p_bbu = plot(bb_upper, color=color.new(color.blue, 80), title="BB Upper")
// p_bbl = plot(bb_lower, color=color.new(color.blue, 80), title="BB Lower")
// fill(p_bbu, p_bbl, color=color.new(color.blue, 95))

Overview

Crypto Sniper 1H combines Bollinger Bands, Keltner Channels, RSI and EMAs with sweep and fair value gap patterns, a smoothed Williams %R confirmation from 15-minute data, 4-hour ATR for volatility and a daily trend check. An optional BTC direction filter and the Williams %R filter can be switched on or off. Higher timeframe values can change until their bars close. Labels appear on the price chart.

Details

Published by

balax-studio on GitHub

Code credit

YSR_MONSTER, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Volatility & bands, SMC / ICT / price action, Oscillators & momentum

Markets

Crypto

Timeframes

M15-H1

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Alt Zaman Dilimi (Willy)timeframe15timeframe_15m
Üst Zaman Dilimi (ATR)timeframe240timeframe_4h
Trend Zaman Dilimi (Anti-Rekt)timeframeDtimeframe_1d
BTC Yön Filtresi Kullan (Simüle)boolfalseuse_btc_filter
Willy (15m) Onayı Kullanbooltrueuse_willy_filter
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This overlay indicator scores liquidity-sweep reversals on the price chart. It looks for a swing high or low violation followed by a recovery close, then grades optional conditions such as RSI and structure into a 0–2 quality score with separate long and short

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Reversal Engine Score v1 [WavesUnchained]

Fresh Supply & Demand Zones

by kvmafthab-pixel
1 stars

Fresh Supply & Demand Zones is a Pine Script v6 indicator that detects and plots fresh supply and demand zones on the price chart. It identifies momentum candles based on ATR period and body size threshold, then scans back for base candles to form zones. Zones

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · Custom licence GitHub repository of Fresh Supply & Demand Zones

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers