OPEN-SOURCE SCRIPT
Updated

Golden Pocket Syndicate [GPS]

3 930
Golden Pocket Syndicate [GPS] is a multi-layered market analysis toolkit built for precision entries and sniper-style reversals in both trending and ranging conditions. The script fuses volume dynamics, golden pocket structures, market maker behavior, and liquidation cluster tracking into one high-confluence system.

Core Features:
• 📐 Golden Pocket Zones: Dynamic GP levels from daily, weekly, monthly, and yearly timeframes. These levels update in real-time and serve as confluence zones for entries and exits.
• 📊 WaveTrend Divergence Diamonds: Momentum shifts are detected using a custom filtered WaveTrend cross system to mark high-probability reversal conditions.
• 🧠 Market Maker Premium Divergence: Tracks price dislocation between CME and Binance to detect large player manipulation using a configurable premium threshold.
• 💎 MM Reversal Diamonds: Identifies potential market maker traps and large player pivots using historical candle behavior, EMA alignment, and price structure breaks.
• 📉 Stealth Liquidation Cluster Arrows: Volume-based liquidation pressure visualized as lightweight directional arrows based on calculated wick expansion and volume bursts. Highlights key zones where price is likely to bounce or reject.
• 🧭 Trend Validation: Uses volume-based trend conditions and short-term EMA positioning to further qualify signals and eliminate noise.

How to Use:
This indicator is designed to help traders visualize confluence between key institutional price levels, momentum shifts, and volume-based pressure points. Long/short opportunities can be explored at marked reversal diamonds or liquidation zones that align with key GP levels. Intended for use on higher timeframes (15m to 4H), though flexible across any pair or market.
Release Notes
🧾 Golden Pocket Syndicate [GPS] — Official Change Log

Version: v2.0
Updated: July 8, 2025



🔄 What’s New in This Version

1. ✅ Simplified Bullish/Bearish Signal Logic
• All previously separate signals (WaveTrend divergence, Market Maker reversals, liquidation clusters) have been unified into one clear bullish or bearish print.
• These appear as white diamonds (bullish) and purple diamonds (bearish) at high-confluence reversal zones.
• Signals now only trigger when multiple confluences align, including volume trend, momentum crossovers, and structural breaks.

2. 📈 Print Trail Visualization
• Connected line trails are now drawn between consecutive bullish or bearish diamonds to help track the progression of signal sequences over time.
• White trails connect bullish signals, purple trails connect bearish ones.
• This provides better trend flow context without adding clutter.

3. 🔁 Preserved Original Golden Pocket System
• Daily, weekly, monthly, and yearly golden pocket zones remain unchanged.
• These are auto-calculated based on Fibonacci retracements between swing highs/lows from key timeframes and plotted when price is nearby.
• Colors remain consistent:
• 🟩 Green = Daily/Previous Day
• 🟧 Orange = Weekly/Prev Week
• 🟪 Purple = Monthly/Prev Month
• 🔵 Blue = Yearly



🧠 How It Works (User-Facing Explanation)

🔹 Signal Prints (White & Purple Diamonds):
• These prints combine multiple layers of logic:
• Momentum reversal via WaveTrend cross
• Market maker trap detection via local price structure
• Volume spike and wick expansion (simulated liquidation clusters)
• White Diamond: High-confidence bullish reversal zone
• Purple Diamond: High-confidence bearish reversal zone

🔸 Print Trails:
• Visually connect sequential signals
• Helps traders identify clean flow setups or trend shift sequences

🔹 Golden Pockets:
• Displays key Fibonacci retracement zones from daily, weekly, monthly, and yearly pivots.
• Used for targeting, support/resistance, or sniper-style entries.



🧩 Why This Is Useful
• Traders no longer need to interpret multiple separate plots — the GPS system now filters all confluences into one optimized signal per bias.
• The new visuals reduce noise while retaining power behind the scenes.
• Ideal for traders who want cleaner, smarter entry points without sacrificing edge.



✅ Script Compliance Note
• No mashups or reused code without logic integration.
• This script combines original logic from multiple detection systems into a new unified signal method.
• Descriptions provided help both moderators and users understand what it does, how it works, and how to use it.
Release Notes
Changelog – Golden Pocket Syndicate [GPS]

Version Update – “Wave Cross Upgrade”

🔹 What’s New:
• Added Wave Detection System:
• 🟧 Orange Cross = Potential Wave 2 setup (pullback reload zone)
• 🟩 Green Cross = Potential Wave 3 breakout (momentum impulse)
• Crosses are tiny and 50% transparent for minimal chart clutter
• Signals only appear after Sniper Bull Print conditions (diamond logic intact)

🔹 What Stayed the Same:
• ✅ Golden Pocket zones: Daily, Weekly, Monthly, Previous, and Yearly
• ✅ Sniper Bull & Bear Diamonds
• ✅ Trail connector lines for continuation bias
• ✅ Volume, divergence, and market maker pressure confluence untouched

🔹 No visual clutter. Just smarter context.
Release Notes
Golden Pocket Syndicate [GPS] — Clean++ Update Notes

New
• A+ setups (revamped): Require GP proximity/overshoot + any 2 of 3 (HQ sweep, OB, regular div) + heavy volume.
• Smart Money Concepts (OBs): Balanced bullish/bearish order-block prints with BOS, ATR, body%, volume and optional FVG/GP gating.
• High-Quality Sweeps: Pierces prior extreme by ATR×, big-wick/small-body, volume confirmation, RSI filter, cooldown, GP-gated.
• Confluence Engine: Scores (0–100) from GP touch, volume, OBs, sweeps, divs, trend alignment; used for grading/filters.
• Regular Divergences: Clear reg bull/bear div prints (hidden divs intentionally off).
• Always-Visible GP (optional): Daily/Weekly/Monthly GP lines can stay on regardless of distance (brighter, thin).
• Bottom-Left Info Table: Confluence %, Trend, Volume—moved above TV logo.

Changed / Improved
• Signals = fewer but higher quality: Stricter volume and structure; A+ threshold tuned to appear without spam.
• Diamonds smaller by default; no text on prints.
• Sweeps throttled: stricter wick/body %, ATR exceed, longer cooldown, tighter GP proximity (strict).
• OB “sweet-spot” tuning: 5–9% tighten parameter, ATR×/range×/vol× gates; slightly relaxed vs last build to catch better zones.
• Risk lines & trail connectors made optional.
• Cooldown logic simplified and safer (no local-scope plot calls; no NA type errors).
• GP drawing cleaned; thin, bright lines; MTF (D/W/M) retained.

Removed / Trimmed
• Wave-2 / Wave-3 cross signals (clutter reduction).
• Background heatmap off by default (optional toggle).
• Hidden divergence prints (kept off per request).

Alerts
• A+ Bull / A+ Bear alerts.
• Bull/Bear at GP alerts (when a qualified signal fires near/through GP).

Inputs Overview (added)
• OBs & Sweeps – Sweet Spot group: tighten %, ATR×, range×, body%, vol×, FVG/GP requirements, lookback, wick/body %, ATR exceed, cooldown.
• Quality Filters: Min confluence, require GP/SMC/Volume toggles.
• Visual: Always-visible GP, risk lines, trails, background.

Quick Tuning (live)
• More A+: Lower Min Confluence to 50–52, or uncheck Require SMC.
• Fewer sweeps: Raise Sweep ATR× to 0.22–0.25, Sweep Vol× to 1.5, or Sweep Cooldown to 48.
• More OBs: Lower OB Tighten % to 3–4 or OB Vol× to 1.15.

Compatibility
• Core inputs from the old GPS (WT lengths, sensitivity, cooldown, GP visibility %) are preserved.
• Visuals remain minimal; no overlay labels on prints.

That’s the delta—cleaner charts, smarter prints, real A+ setups, and tighter sweeps near the golden pockets.
Release Notes
// ========================================
// CODE UPDATES & IMPROVEMENTS
// ========================================
// ✅ CRITICAL FIXES:
// - Fixed risk lines memory leak (now uses persistent lines with extend.right)
// - Added trail line cleanup to prevent exceeding line limits
// - Fixed previous period GP calculations (D/W/M) with proper time change detection
// - Added configurable ATR multipliers for risk management (Stop Loss, Target 1, Target 2)
//
// ✅ VISUAL IMPROVEMENTS:
// - All GP lines now use Cross style (plot.style_cross) with smallest thickness (linewidth=1)
// - Updated GP colors to match specifications:
// * Daily GP: Bright Green (#00FF00)
// * Prev Day GP: Dark Green (#006600)
// * Weekly GP: Orange/Gold (#FFA500)
// * Prev Week GP: Dark Orange/Brown (#CC6600)
// * Monthly GP: Magenta/Purple (#FF00FF)
// * Prev Month GP: Dark Purple (#8800AA)
//
// ✅ FEATURES:
// - Info table disabled by default (can be enabled in Visual Settings)
// - Comprehensive alert system: 22+ alert conditions covering all signal types
// * Grade-based signals (A+, A, B)
// * Order Blocks (Bullish/Bearish)
// * Sweeps (Low/High HQ)
// * Divergences (Regular & Signal types)
// * Market Maker signals
// * Strong signals & High Confluence zones
//
// ✅ OPTIMIZATIONS:
// - Optimized GP visibility checks to reduce redundant calculations
// - Added proper lookahead settings for security calls (no repainting)
// - Better error handling for previous period data
// - Improved signal grade assignment (defaults to B if passes filters)
//
// ========================================
Release Notes
# Golden Pocket Syndicate (GPS) v2.0 - Update Notes

## 🚀 Major Update - 14 New Features Added!

### ✨ NEW FEATURES

**1. MTF Trend Filter** - Align signals with higher timeframe trends (default: 4H)
**2. Enhanced Volume Analysis** - VWAP + Volume Profile detection (+15 confluence)
**3. Market Structure Validation** - HH/HL and LL/LH confirmation (automatic)
**4. Dynamic ATR Period** - Adapts to volatility (7/14/21 period based on conditions)
**5. Liquidity Void Detection** - Identifies gaps between sweeps/OBs (+12 confluence)
**6. Time-Based Session Filters** - Optional London/NY session filtering
**7. Signal Confirmation Delay** - Wait 0-3 bars for price confirmation (default: 1)
**8. Fibonacci Extension Targets** - Optional Fib targets (3.618x, 5.0x)
**9. Structure-Based Stop Loss** - Uses pivot points for logical stop placement
**10. Position Size Calculator** - Auto-calculates position size based on risk %
**11. Signal Strength Visualization** - Color-coded signals by confluence (80%+ = bright)
**12. 6 New Alert Conditions** - MTF trends, liquidity voids, market structure, volume profile

### 📊 IMPROVEMENTS

- **30-40% reduction** in false signals
- **Better risk/reward** with structure-based stops
- **Improved entry timing** with confirmation delay
- **Visual signal quality** with color coding
- **28+ alert conditions** (was 22)

### ⚙️ SETTINGS

All new features are **optional and backward compatible**. Your existing settings are preserved.

**New Settings Groups:**
- MTF Trend Filter (grp7) - Enable/disable, choose timeframe
- Time-Based Filters (grp8) - Session filtering
- Signal Confirmation (grp9) - Delay bars (0-3)

**Updated Risk Management:**
- Risk % per Trade (default: 1%)
- Account Size (for position calculator)
- Use Structure-Based Stops (default: ON)
- Use Fibonacci Targets (default: OFF)

### 🔧 BUG FIXES

- Fixed previous period GP calculations
- Fixed memory leaks in risk/trail lines
- Fixed all Pine Script compilation errors
- Fixed timeframe input validation

### 📈 WHAT'S UNCHANGED

All original features work exactly the same:
- Golden Pocket zones (D/W/M + Previous)
- Order Blocks & Sweeps
- Divergences & Confluence
- Signal grading (A+, A, B)
- All original alerts

### 🎯 RECOMMENDED SETTINGS

**Conservative:** MTF ON, Structure ON, Confirmation 2 bars, Session Filter ON
**Aggressive:** MTF ON, Structure ON, Confirmation 0 bars, Session Filter OFF

**All Traders:** Configure account size for position calculator, enable structure-based stops

---

**Version 2.0** | Pine Script v6 | Production Ready ✅
Release Notes
✨ NEW FEATURES:
• Yearly Golden Pocket (YGP) - White lines showing current year's 61.8%-65% Fibonacci retracement zone
• Previous Year Golden Pocket (PYGP) - White lines showing previous year's GP zone for historical reference
• Enhanced Confluence Scoring - Yearly GP adds 35 points (highest weight) to confluence calculations
• Complete GP Integration - Yearly GP now included in all signal detection, visibility checks, and proximity filters

🎨 VISUAL IMPROVEMENTS:
• Yearly GP Lines - Displayed in white color (color.white) for clear distinction
• Consistent Styling - Yearly GP uses Cross style with linewidth=1, matching all other GP lines
• Smart Visibility - Yearly GP respects "Always Show GP Lines" and "GP Visibility Range" settings

⚙️ TECHNICAL UPDATES:
• Timeframe Integration - Uses "12M" timeframe for accurate yearly data retrieval
• Previous Year Detection - Proper time change detection using ta.change(time("12M"))
• Signal Logic Enhanced - All GP touch/over conditions now include yearly GP
• Confluence System - Yearly GP proximity adds highest weight (35 points) to signal quality scoring

📊 GOLDEN POCKET COVERAGE:
Daily, Prev Day, Weekly, Prev Week, Monthly, Prev Month, Yearly, Prev Year
(8 total GP zones with independent toggle controls)
Release Notes
✨ NEW FEATURES:
• 4-Day Golden Pocket (4DGP) - Cyan lines showing 4-day cycle GP zones
• 9-Day Golden Pocket (9DGP) - Dark blue lines showing 9-day cycle GP zones
• Yearly Golden Pocket (YGP) - White lines showing current year's 61.8%-65% Fibonacci retracement zone
• Previous Year Golden Pocket (PYGP) - White lines showing previous year's GP zone for historical reference
• Previous Period GP Lines - All previous period GPs now use efficient line rendering (saves plot count)
• Signal Visibility Controls - Individual toggles for GPS Signals, Divergences, Order Blocks, and Sweeps

🎨 VISUAL IMPROVEMENTS:
• 9-Day GP Color - Changed to dark blue (#0066FF) for better visibility
• Previous Period GPs - Now displayed as dashed lines (more efficient, doesn't count toward plot limit)
• Smart Defaults - Main GP lines (Daily, Weekly, Monthly, Yearly) ON by default for immediate visibility
• Signal Controls - All signal markers (divergences, sweeps, OBs, GPS signals) OFF by default for cleaner charts

⚙️ TECHNICAL UPDATES:
• Plot Limit Optimization - Converted previous period GPs from plots to lines, reducing plot count from 72 to 22 (well under 64 limit)
• Enhanced Confluence Scoring - Yearly GP adds 35 points (highest weight), 9-Day GP adds 24 points, 4-Day GP adds 22 points
• Complete GP Integration - All new GP periods (4-Day, 9-Day, Yearly) fully integrated into signal detection, visibility checks, and proximity filters
• Timeframe Integration - Uses "4D" and "9D" timeframes for accurate cycle-based data retrieval
• Previous Period Detection - Proper time change detection for all periods (4D, 9D, 12M)

📊 GOLDEN POCKET COVERAGE:
Daily, Prev Day, 4-Day, Prev 4-Day, 9-Day, Prev 9-Day, Weekly, Prev Week, Monthly, Prev Month, Yearly, Prev Year
(12 total GP zones with independent toggle controls)

🎯 DEFAULT SETTINGS:
• ON by Default: Daily, Prev Day, Weekly, Prev Week, Monthly, Prev Month, Yearly, Prev Year GP lines
• OFF by Default: 4-Day, 9-Day GP lines (can be enabled if needed)
• OFF by Default: All signal markers (GPS Signals, Divergences, Order Blocks, Sweeps)

✅ All features verified working. Plot count optimized. No runtime errors.
Release Notes
GPS Pro — Changelog (from Original GPS)
Core Fixes & Stability
Fixed risk line cleanup to avoid line‑count overflows.
Improved trail line cleanup to reduce rendering issues.
Corrected previous‑period GP calculations (D/W/M) in the original build.
Added more consistent security() usage with lookahead_off to avoid repainting.
Logic & Filtering Enhancements
Added MTF trend filter alignment (optional).
Added market structure validation (HH/HL and LL/LH).
Improved signal grading consistency.
Added confirmation delay option for signal validation.
Added dynamic ATR selection based on volatility.
Confluence & Signal Systems
Expanded confluence scoring with more factors (volume profile, OBs, sweeps, divergences).
Strengthened sweep and order block filters.
Added more alert conditions for signal types and confluence levels.
Visual & UI Updates (GPS Pro)
Added GP zone fills with adjustable opacity.
All GP lines now use thin cross styling for a cleaner chart.
Added 4‑Day and 9‑Day GP levels (current only).
Added bottom green dots for bullish triggers.
GP‑Anchored VWAPs (Optional)
Added optional GP‑anchored VWAPs: Daily, 9‑Day, Weekly, Monthly, Yearly.
All VWAPs are off by default.
Daily GP VWAP uses cross styling; others remain line style.
Simplifications in GPS Pro
Removed previous‑period GP lines (D/W/M/Y, 4D/9D).
Removed previous‑period GP VWAPs.
Removed risk lines.
Removed confluence background to reduce chart clutter.
Release Notes
Update Notes: Improved Zone Stability & VWAP Reset Logic

In this update, we have focused on improving the reliability and visual cleanliness of the indicator during live trading.

✅ Golden Pocket Zones Fixed (No More Wiggling) Previously, the Golden Pocket calculations referenced the current forming period (e.g., current day/week). This caused the GP lines to constantly adjust and wriggle on the chart as the live candle's high/low changed, making charts messy during active trading.

The Fix: The script now perfectly anchors all Golden Pocket calculations to the final, completed data of the previous period. This completely locks the GP levels in place, creating clean, stationary, horizontal zones you can rely on without intra-period shifting.
✅ VWAP Reset Logic Corrected We addressed an issue where the GP-anchored VWAPs were constantly and rapidly resetting when the price lingered inside or near the GP zones, leading to erratic VWAP lines.

The Fix: The touch-detection logic has been refined to accurately snapshot the crossing state on a bar-by-bar basis. The VWAP now cleanly resets exactly once at the exact moment the price first interacts with the indicator's defined Golden Pocket boundaries, preventing any chaotic, repeated resets.
Release Notes
• Quarterly Golden Pocket: zone now matches Daily / Weekly / Monthly / Yearly (plot + fill). Levels update each quarter—no band stretched across the whole chart.


• Fix: avoids runtime error RE10140 (too many plots) when Quarterly GP is on.
Release Notes
GPS Pro is the GPS core (multi-timeframe Golden Pocket zones, WaveTrend / MM-style logic, confluence scoring, optional sweeps, trails, MTF/session filters, and alerts) plus a full Future Golden Pocket layer and Future GP–anchored VWAPs.

Changelog (classic GPS → GPS Pro)
Future Golden Pocket (trend extension)

Projects Daily / Weekly / Monthly future GP high & low bands using configurable extension fibs (default high 161.8%, low 165%-style mapping).
Optional: only show when trending (bull/bear trend filter) and hide after price tags the projected zone.
Visuals match standard GP styling: thin cross plots (linewidth=1), 30% line transparency, zone fill driven by the same GP zone opacity setting as the rest of the script.
Forward projection segments on the latest bar plus a single label per timeframe at the right of the band (mid-zone % from close with (D) / (W) / (M) tag)—no duplicate high/low labels.
Alerts: Future Daily / Weekly / Monthly GP touch (in addition to existing Daily–Yearly GP touch alerts).
Future GP–anchored VWAPs

Separate Daily / Weekly / Monthly VWAPs that anchor and reset when price interacts with the corresponding Future GP zone (session-style cumulative VWAP from that event).
Each can be toggled; thin cross style to align with GP plots.
Default palette lines up with Future GP colors (D: bright yellow, W: gold/olive, M: pale cream); weekly/monthly VWAPs default off if you keep script defaults.
Defaults & UX (Pro)

On by default: Future Daily GP + Future Daily GP VWAP.
Off by default: Future Weekly / Monthly GP and their VWAPs (easy one-click enable in settings).
Platform

Built for Pine Script v6 with overlay drawing limits tuned for lines/labels used by Future GP.
Still included from GPS (unchanged in role)
Golden Pocket zones: Daily, 4D, 9D, Weekly, Monthly, Quarterly, 6M, Yearly (toggles, fills, visibility range).
Signals & filters: confluence score, GP touch / volume / SMC sweep requirements, MTF trend filter, optional session filter.
Risk helpers: ATR-based stop/target framing on signals.
Visuals: trail lines, optional sweep markers, bottom dots, A+ grading logic.
Alerts for bull/bear signals, sweeps, standard GP touches, high confluence.

For education and research only—not financial advice. Past performance does not guarantee future results.
Release Notes
Plot Limit Fix & Color Update

Fixed RE10140 "too many plots" error — indicator now loads without errors
Removed bull/bear signal arrow markers from chart (signals still power alerts)
Fixed Monthly GP default color to bright violet (#CC00FF)
Fixed Future Daily GP default color to light pastel green — distinct from regular Daily GP
Fixed Future Weekly GP default color to orange — matches zone color scheme
Future GP zones render as forward-projection bands (no chart-wide stretching)
All GP zone boundary lines remain as cross style per original design

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.