OPEN-SOURCE SCRIPT
Zaktualizowano

Sniper Mini VWAP

1 266
This script plots dynamic, session-based VWAPs for key intraday timeframes:
1H (green), 4H (orange), 8H (purple), and Daily (red).

Each VWAP resets at the start of its own session, giving traders a real-time view of price relative to average volume-weighted value. These lines often act as intraday support, resistance, or liquidity magnets — great for scalping, fade setups, and sniper-style entries.

You can toggle each VWAP on or off for a cleaner chart.

This version does not use anchored VWAPs — it’s designed for traders who need fast feedback as price develops within active sessions.
Informacje o Wersji
What’s new
• Multi-TF VWAPs: 1H, 4H, 8H, Daily, 3-Day, 5-Day, 7-Day, Weekly.
• Smoothing toggle (EMA) with length control to calm noisy VWAP lines.
• Auto-hide: option to hide lower-TF VWAPs on higher-TF charts to cut clutter.
• Color, width, and transparency controls for every VWAP.
• Daily ±σ bands (standard deviation) for mean-reversion targets.
• Optional last-bar value labels (clean, compact).
• Lightweight VWAP cross dots only (no “+” signals).
• Compact Trend Table (optional): alignment score, stack status, vs Daily, momentum, trade zone.
• Clean alerts: price crosses Daily VWAP and 1H VWAP (up/down).
• Compliance/robustness: pure ta.vwap per resolution, no lookahead, plots kept at top scope (Pine v6 safe).

Removed
• White/purple “+” buy/sell markers.
• Lookahead logic that could repaint on intraday.

Quick use
• Turn on the anchors you care about. Keep Daily + 1H + 4H on by default. Add 3D/5D/7D for larger context.
• If you want a clean chart, enable Hide Lower-TF on Higher-TF.

Read it right
• Bias
• Bullish when price > Daily VWAP and 1H > 4H > Daily (stacked up).
• Bearish when price < Daily VWAP and 1H < 4H < Daily (stacked down).
• Entries
• Trend pullback: wait for price to pull back to 1H VWAP (or 4H on slower charts) and hold; enter with trend.
• Mean-reversion: in chop/range, fade moves back toward Daily VWAP; use Daily ±σ bands as outer guides.
• Targets
• Trend: prior swing, opposing VWAP, or Daily ±σ band.
• Reversion: midline (Daily VWAP) first, opposite band second.
• Stops
• Beyond the touched VWAP + a small buffer (or beyond the last swing).
• Timeframes
• Intraday execution: 1–15m with 1H anchor.
• Swing: 1H–4H with Daily/Weekly anchors.

Settings that matter
• Enable Smoothing: default 3. Raise if your feed is noisy; lower if you want raw.
• Show Daily Bands: on for reversion work, off for strict trend following.
• Show Trend Table: on when you want a one-glance read (alignment %, stack, zone).
• Show VWAP Cross Dots: minimal confirmation only; no extra signals.

Playbook (fast)
1. Set bias with Daily and Weekly.
2. Check stack: 1H vs 4H vs Daily.
3. Plan the entry: trend pullback to 1H/4H or reversion back to Daily.
4. Manage: stop past VWAP or last swing; target Daily or band; trail once back above/below 1H.

Notes
• No custom repainting beyond standard MTF behavior from request.security.
• All plots are top-level and Pine v6 compliant.

Use it for structure, not prediction. Let price tell you which VWAP it respects today, and trade the touch, hold, and follow-through—not the first tag.
Informacje o Wersji
Here’s a clean TradingView description you can paste under the script:



Sniper Mini VWAP — rolled back to the basics

We’ve intentionally rolled the free version back to a simple, reliable core.
No clouds, dashboards, or extra signals—just clean session-reset VWAPs that many of you already use every day.

What it does
• Plots four independent VWAPs:
• 1H (green), 4H (orange), 8H (purple), Daily (red).
• Each VWAP resets at the start of its own period (hour/day).
Lines do not connect across sessions—so you get true session/period anchoring and zero “through-price” stitches.
• Built to be fast, unobtrusive, and consistent across symbols and chart timeframes.

Why the rollback?

Feedback was clear: most traders wanted the original behavior and look.
Advanced features (multi-day anchors, clouds, tables, etc.) add weight and change the read. This free build focuses on the classic VWAP workflow you already know.

How to use (common playbook)
• Bias: price above Daily VWAP = bullish day bias; below = bearish bias.
• Intraday mean: 1H / 4H / 8H VWAPs act as moving value lines for pullbacks within the day.
• Confluence: the more VWAPs stack under/over price, the stronger the context.
• Risk: many traders place stops beyond the nearest VWAP or wait for a reclaim/loss of a VWAP for confirmation.

Tip: VWAPs from higher periods will update while their source bar is forming; values are final once that higher-timeframe bar closes.

Inputs
• Simple toggles to show/hide: 1H, 4H, 8H, Daily.
• Fixed, readable colors to keep the chart clean.
(Clone the script if you want to customize color/width or add alerts.)

Notes
• The lines break at each new period by design—this is the classic session VWAP style many prefer.
• Works on most assets/timeframes; best on liquid markets.

If you want the heavier toolkit (clouds, multi-day anchors, labels, etc.), check the separate “enhanced” build. Otherwise—enjoy the speedy, no-nonsense VWAPs.
Informacje o Wersji
**Sniper Mini VWAP**

Enhanced VWAP indicator with multi-session ORB (Opening Range Breakout) strategy for crypto trading.

**What's new:**

**Multi-session ORB system**
- Automatically calculates ORB for all 4 major forex sessions (Sydney, Tokyo, London, New York)
- 24-hour ORB boxes extend for a full day for better visibility
- Shows up to 4 days of ORB history
- Session-specific border colors: Cyan (Sydney), Blue (Tokyo), Yellow (London), Orange (NY)

**Enhanced VWAP display**
- Thin cross-style lines for all VWAP levels
- Colors: Neon Green (1H), Neon Yellow (4H), Magenta (8H), Red (Daily)

**Simplified signals**
- Buy: Green circle when price breaks above any ORB high
- Sell: Purple circle when price breaks below any ORB low
- Only major breakouts - no clutter

**Features**
- Volatility adjustment for crypto markets
- Automatic session detection
- Clean design with transparent ORB boxes
- Simple dot signals (no text labels)

Perfect for crypto traders looking for opening range breakout opportunities and multi-timeframe VWAP analysis.
Informacje o Wersji
NEW FEATURES (Version 2.0):

Multi-factor ORB bias analysis using VWAP stack positioning
Volatility-adjusted ORB range detection (tight vs wide)
Price structure tracking during ORB formation
Session-weighted bias scoring
Color-coded visual feedback system

IMPROVEMENTS:

VWAP stacking is now the primary bias indicator
ORB compression/expansion factored into strength
Close position demoted to secondary confirmation
Structure analysis added
Adjustable thresholds
Informacje o Wersji
Major changes:
Strategy: Breakout → Mean reversion (buy at support, sell at resistance)
Defaults: ORB disabled by default (cleaner chart)
VWAP: No repainting (lookahead_off)
Signals: Text labels instead of circles
Colors: Standard colors (green, orange, purple, red)
Code: User-defined types instead of multiple arrays
What's new:
Mean reversion signal strategy
Trend filter option
ATR-based touch detection
No volume requirement
Simplified ORB bias system
Informacje o Wersji

**1. No Repainting**
- Changed from `lookahead_on` to `lookahead_off`
- VWAP values are now real-time reliable and won't change on historical bars
- Removed unnecessary session reset logic for cleaner code

**2. Cleaner Visuals**
- Line width reduced from 2 to 1 (thinner lines)
- Added cross-style markers (`plot.style_cross`)
- Less visual clutter, more professional appearance

**3. Same Core Functionality**
- ✅ Same 4 VWAP timeframes: 1H (Green), 4H (Orange), 8H (Purple), Daily (Red)
- ✅ Same color scheme
- ✅ Same multi-timeframe VWAP analysis

---

## ➕ New Optional Features (All Disabled by Default)

**ORB Strategy System**
- Multi-session Opening Range Breakout calculation (Sydney, Tokyo, London, New York)
- Colored background zones showing opening ranges
- ORB bias colors (Green=Tight, Red=Wide, Purple=Neutral)
- **Default: DISABLED** - Chart loads clean with just VWAP lines

**ORB Signals (Mean Reversion)**
- BUY signals when price touches ORB low (support)
- SELL signals when price touches ORB high (resistance)
- Text labels ("BUY" / "SELL") for clarity
- Optional trend filter (aligns with daily trend)
- **Default: DISABLED** - No signals unless enabled

**Volatility Adjustments**
- Auto-adjusts thresholds based on asset volatility (ATR)
- Modes: Auto, High (Spot/DeFi), Medium (BTC/ETH), Low (Stablecoins), Custom
- Crypto-specific optimizations

---

## 📊 Quick Comparison

| Feature | Original | New Version |
|---------|----------|-------------|
| VWAP Repainting | Yes (`lookahead_on`) | No (`lookahead_off`) |
| Line Width | 2 | 1 |
| Plot Style | Solid lines | Cross markers |
| ORB Features | ❌ Not available | ✅ Available (disabled by default) |

---

## 🚀 Usage

**Default Setup (Same as Original):**
- Indicator loads with VWAP lines only
- All 4 timeframes visible
- Clean, uncluttered chart
- No repainting, more reliable

**To Enable ORB Features:**
- Go to Inputs → Enable "Show ORB Strategy" when needed
- Enable "Show ORB Signals" for buy/sell labels
- All features are optional - use them when you need them

---

## 💡 Key Takeaway

**Same clean VWAP experience as the original, but with:**
- ✅ No repainting (more reliable for real-time trading)
- ✅ Cleaner visuals (thinner lines, cross markers)
- ✅ Optional ORB features (disabled by default)

**Perfect for:** Multi-timeframe VWAP analysis with optional mean reversion signals at ORB support/resistance levels.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.