OPEN-SOURCE SCRIPT
מעודכן VPSR

VP Sovereign Reign (VPSR) - Advanced Volume Profile Analysis
A sophisticated volume analysis tool that provides deep insights into market participation and momentum through an intuitive visual interface. This indicator helps traders identify significant market moves, potential reversals, and institutional activity.
Key Features:
1. Smart Volume Analysis
• Dynamic volume profiling
• Institutional participation detection
• Abnormal volume identification
• Real-time momentum tracking
2. Advanced Visual System
• Color-coded volume bars
• Adaptive cloud formation
• Reversal pattern detection
• Fake-out warning system
Visual Components:
1. Volume Bars
• Green: Bullish pressure with normal volume
• Purple: Bearish pressure with normal volume
• White: Significant bullish participation
• Pink: Significant bearish participation
• Orange: High-probability reversal zones
2. Dynamic Cloud
• White Cloud: Bullish control zone
• Purple Cloud: Bearish control zone
• Cloud density indicates participation strength
• Adaptive to market conditions
Signal Interpretation:
1. Normal Market Conditions
• Green/Purple bars show directional pressure
• Cloud color indicates dominant force
• Cloud height shows average participation
2. Significant Events
• White/Pink bars signal major moves
• Orange bars highlight potential reversals
• Cloud expansion shows increasing activity
• Cloud contraction indicates consolidation
Customization Options:
• Volume MA Length: Smoothing factor
• Abnormal Volume Threshold: Sensitivity
• Cloud Display: Toggle visualization
• Color scheme optimization
Best Practices:
1. Multiple Timeframe Analysis
• Start with higher timeframes
• Confirm on lower timeframes
• Watch for confluence
2. Volume Analysis
• Compare to historical levels
• Monitor abnormal spikes
• Track participation trends
3. Trade Management
• Use as confirmation tool
• Wait for clear signals
• Monitor fake-out warnings
• Combine with price action
Trading Applications:
1. Trend Analysis
• Identify strong moves
• Spot weakening trends
• Detect consolidation
2. Reversal Detection
• Spot potential turning points
• Identify fake-outs
• Monitor institutional activity
3. Risk Management
• Volume-based position sizing
• Stop loss placement
• Profit target selection
The VP Sovereign Reign indicator excels at:
• Identifying significant market moves
• Detecting institutional participation
• Warning of potential reversals
• Highlighting fake-outs
• Providing clear market context
Risk Warning:
This indicator is designed as a technical analysis tool and should be used as part of a complete trading strategy. Past performance does not guarantee future results. Always employ proper risk management techniques.
Note: For optimal results, use in conjunction with price action analysis and other complementary indicators.
A sophisticated volume analysis tool that provides deep insights into market participation and momentum through an intuitive visual interface. This indicator helps traders identify significant market moves, potential reversals, and institutional activity.
Key Features:
1. Smart Volume Analysis
• Dynamic volume profiling
• Institutional participation detection
• Abnormal volume identification
• Real-time momentum tracking
2. Advanced Visual System
• Color-coded volume bars
• Adaptive cloud formation
• Reversal pattern detection
• Fake-out warning system
Visual Components:
1. Volume Bars
• Green: Bullish pressure with normal volume
• Purple: Bearish pressure with normal volume
• White: Significant bullish participation
• Pink: Significant bearish participation
• Orange: High-probability reversal zones
2. Dynamic Cloud
• White Cloud: Bullish control zone
• Purple Cloud: Bearish control zone
• Cloud density indicates participation strength
• Adaptive to market conditions
Signal Interpretation:
1. Normal Market Conditions
• Green/Purple bars show directional pressure
• Cloud color indicates dominant force
• Cloud height shows average participation
2. Significant Events
• White/Pink bars signal major moves
• Orange bars highlight potential reversals
• Cloud expansion shows increasing activity
• Cloud contraction indicates consolidation
Customization Options:
• Volume MA Length: Smoothing factor
• Abnormal Volume Threshold: Sensitivity
• Cloud Display: Toggle visualization
• Color scheme optimization
Best Practices:
1. Multiple Timeframe Analysis
• Start with higher timeframes
• Confirm on lower timeframes
• Watch for confluence
2. Volume Analysis
• Compare to historical levels
• Monitor abnormal spikes
• Track participation trends
3. Trade Management
• Use as confirmation tool
• Wait for clear signals
• Monitor fake-out warnings
• Combine with price action
Trading Applications:
1. Trend Analysis
• Identify strong moves
• Spot weakening trends
• Detect consolidation
2. Reversal Detection
• Spot potential turning points
• Identify fake-outs
• Monitor institutional activity
3. Risk Management
• Volume-based position sizing
• Stop loss placement
• Profit target selection
The VP Sovereign Reign indicator excels at:
• Identifying significant market moves
• Detecting institutional participation
• Warning of potential reversals
• Highlighting fake-outs
• Providing clear market context
Risk Warning:
This indicator is designed as a technical analysis tool and should be used as part of a complete trading strategy. Past performance does not guarantee future results. Always employ proper risk management techniques.
Note: For optimal results, use in conjunction with price action analysis and other complementary indicators.
הערות שחרור
📦 Changelog: VPSR v1 → VPSR+ v2• Upgraded to Pine Script v6 for compatibility and stability.
• Refined color scheme:
• White = Normal bullish volume
• Purple = Normal bearish volume
• Green = Extremely bullish volume
• Pink = Extremely bearish volume
• Removed old green/purple/white logic and replaced with sniper-style color hierarchy.
• Added extreme volume detection logic using customizable thresholds.
• Added reversal condition logic for potential fakeouts based on candle structure.
• Improved volume cloud:
• Adaptive cloud now tracks volume MA trend more clearly.
• Color-coded by trend direction (white for bullish, purple for bearish).
• Simplified and modularized code for easier edits and future expansions.
• Improved visual clarity with reduced opacity and better scaling behavior.
• Renamed plots & variables to be more descriptive and easier to debug.
הערות שחרור
• Updated to Pine Script v6• Removed reversal circle markers (plotshape) for cleaner visuals
• Improved bar coloring: yellow for high-confluence reversals
• Cleaned up volume plot for readability
• MA cloud remains optional via toggle
הערות שחרור
Changelog —1) Core engine
• Static SMA → Hybrid MA
• Old: volMA = ta.sma(volume, lookbackPeriod).
• New: Fixed MA (SMA/EMA/WMA/HMA) or Adaptive MA using a variable-EMA workaround (lets the period breathe with volatility without passing series length into built-ins).
• Why: Stable in Pine v6, reacts faster in volatility, no series-length errors.
• Original to us: The adaptive period is computed from ATR/price, then fed into a custom EMA kernel to keep TradingView happy.
2) Threshold model
• Simple multiplier → Dynamic bands
• Old: Abnormal only = volMA * volMultiplier.
• New: Abnormal & Extreme = volMA + stdev * k. Two knobs: volMultiplier, extremeMultiplier.
• Why: Separates “busy” from “blow-off.” Reduces false “big” reads on already-active sessions.
3) Context awareness (VWAP + VolMA logic)
• Old: Basic VWAP check in reversals.
• New: Every classification keys off VWAP and VolMA simultaneously (above/below/near).
• Why: Side of VWAP is market structure in one line; avoids buying strength below VWAP and shorting weakness above it.
4) Flow analytics (new)
• Delta & CVD
• New: Bar-level delta approximation (range-weighted) + CVD (cumulative delta) with slope detection.
• Why: Shows if participation backs the move or fades it.
• Original: A lightweight delta that doesn’t need tape or L2—built for any symbol/timeframe.
5) Pace of participation (new)
• Volume ROC
• New: % change vs N bars; configurable spike threshold.
• Why: Confirms “sudden attention” vs drift. Useful for reversals and breakouts.
6) Time-normalized activity (new)
• RVOL by time window
• New: Rolling array of same-slot bars → Relative Volume (this time vs its own typical time).
• Why: 9:35 volume isn’t 14:10 volume. This normalizes the read.
• Original: True “same-time” RVOL inside one indicator—no external sessions needed.
7) Reversal vs Exhaustion (refined)
• Old: One reversal idea.
• New:
• Reversal = extreme volume + structure + right side of VWAP & VolMA.
• Exhaustion = extreme volume on the wrong side of VWAP.
• Why: Splits “power” from “blow-off.” Traders treat them differently (follow vs fade).
8) Signal consolidation (new UI)
• Labels removed → Bias Table
• Old: On-chart labels (clutter).
• New: Minimal table with four fields:
• BIAS: BULL / BEAR / NEUTRAL / EXHAUSTION
• VWAP: Above / Below / Near
• Confidence: LOW / MED / HIGH (based on stacked evidence)
• Volume: Normal / Abnormal / Extreme
• Why: Instant read, zero visual noise.
9) Bias scoring (new)
• Transparent scoring, not a mystery
• Inputs: VWAP side, VolMA side, volume state, delta sign/strength, CVD slope, ROC spike, RVOL pass.
• Rule: BULL vs BEAR points; ≥2 spread to flip bias; EXHAUSTION overrides.
• Original: Session-aware, multi-factor bias in one cell—built for quick decisions.
10) Visual language (refined)
• Kept your brand palette: white (bull extreme), magenta/pink (bear extreme), indigo (bear normal), lime/green (bull levels), orange (reversal/exhaustion highlight).
• Cloud remains; thresholds plotted as yellow/red rails.
11) Reliability & performance
• No Unicode, no block comments, no nested ternaries in function calls.
• No series-length into built-ins (custom vEMA used).
• Table renders last bar only; delta plot hidden by default.
• Division-by-zero guards on ranges/volumes.
12) Alerts (clean)
• Extreme Volume Spike
• ROC Spike
• High RVOL
• High Delta imbalance
• (All map to the same logic feeding the table, so alerts match the on-screen read.)
⸻
What’s uniquely “VPSR Pro”
• Adaptive MA without series-length errors. ATR-driven period fed into a custom EMA kernel—fast, legal in Pine v6, and robust.
• Same-time RVOL. True time-slot normalization with an internal array, not a crude session average.
• Bias cell that stacks participation, pressure, pace, and position. VWAP + VolMA + Delta/CVD + ROC + RVOL + Volume state, then a deterministic score. No black box.
• Exhaustion override. A single rule that flips the bias when extreme volume prints on the wrong side of VWAP—exactly what traders miss in real time.
• Minimal chart, maximal signal. Zero labels; one table; color-coded bars only when it matters.
⸻
Migration notes (settings)
• If you liked the old feel: set adaptivePeriod = off, volMultiplier ≈ 2.0, extremeMultiplier ≈ 3.5, rocThreshold 150–200.
• Scalps (1–3m): raise rocThreshold (250–300), maybe raise volMultiplier to 2.2–2.6.
• HTF (4H/D): lower rocThreshold (100–150), volMultiplier 1.8–2.2.
⸻
How to read it—one glance
• BIAS tells you direction; VWAP confirms location; Confidence tells you if size up/down; Volume says if the push is routine, abnormal, or extreme.
• EXHAUSTION in BIAS = consider fade, tight stop.
• When BIAS = BULL/BEAR and Confidence = HIGH with Volume = Extreme, that’s your A-setup—now confirm with Spiderlines/GP/divs and take it.
If you want this packaged as a release note for Discord with a short demo GIF checklist, say the word—I’ll format it for your server.
הערות שחרור
Change Log & Updates:Removed Data Table: Eliminated the on-chart Bias Table and associated calculation logic to provide a cleaner, uncluttered workspace.
Dynamic Volume Gradient: Implemented a new intensity-based coloring system for immediate visual analysis:
Gray: Indicates noise/volume below the average.
Bright Colors: Signify "Super Abnormal" or extreme volume levels.
Darker Colors: Represent lower volume intensity relative to the average.
Reversal Markers: Added specific signals (Triangles) to highlight potential trend reversals that occur immediately after a "Super Abnormal" volume spike, allowing for quicker exhaustion detection.
Visual Optimization: Removed background highlights and simplified threshold lines to ensure maximum focus on price and volume action.
הערות שחרור
VPSR Pro — Volume Pressure & Signal RecognitionVPSR Pro is a volume-focused analysis tool built for traders who use order flow and volume structure to identify high-probability entries, bias shifts, and trend change confirmation. Unlike standard volume indicators that simply plot bars, VPSR Pro classifies every bar into a dynamic tier system, detects directional pressure imbalances, and generates confirmation-based signals — all updating instantly as you switch timeframes.
How Volume Is Classified
Every bar is measured against a dynamically calculated volume moving average (SMA, EMA, WMA, or HMA — your choice). On top of that average, two standard-deviation-based thresholds are calculated:
Abnormal Volume — volume exceeding MA + (StdDev × 2.0) — signals above-average participation
Extreme Volume — volume exceeding MA + (StdDev × 3.5) — signals institutional-level activity or a climactic event
Each bar is then colored by direction and intensity:
Color Meaning
Faded Gray Volume below MA — noise, ignore
Dark Green Normal bullish participation
Lime Green Abnormal bullish volume — real buying pressure
Bright Lime Extreme bullish volume — climactic buying
Dark Red Normal bearish participation
Orange-Red Abnormal bearish volume — real selling pressure
Bright Red Extreme bearish volume — climactic selling
An optional Adaptive MA mode adjusts the lookback period dynamically using ATR-based volatility — tighter periods in calm markets, wider in volatile ones.
Reversal Signals (Triangles)
After an extreme volume spike, the market often exhausts in that direction. VPSR Pro watches for a directional reversal on the bars immediately following the spike:
A white triangle up fires when a bearish extreme spike is followed by a bullish candle with real body structure and sufficient volume — indicating absorption and potential demand taking over
A fuchsia triangle down fires when a bullish extreme spike is followed by a bearish candle under the same filters
Key filters applied to every reversal signal:
Direction awareness — the reversal must fight the spike's direction, not continue it
Body ratio filter — the reversal candle's body must be ≥ 40% of its full range, eliminating dojis and wick traps
Volume filter — the reversal bar must have at least 75% of the MA volume, eliminating weak follow-through
Multi-bar lookback — scans the prior 1–5 bars for the extreme spike, catching delayed reactions
Divergence Signals (X Markers)
Volume divergence is one of the most reliable early warnings of trend exhaustion. VPSR Pro detects it when price reaches a structural extreme but volume is declining — meaning the move is losing participation:
Aqua X at the bottom — price at a swing low but volume contracting over 3 consecutive bars → bullish divergence
Orange X at the top — price at a swing high but volume contracting → bearish divergence
Divergence Confirmation (Checkmarks)
Because divergence alone is not a trade entry, VPSR Pro adds a one-bar confirmation layer. After a divergence X fires:
If the next bar closes bullish with rising volume → a white ✓ prints below the bar. This is your signal to start looking for long setups.
If the next bar closes bearish with rising volume → a fuchsia ✓ prints above. Start looking for shorts.
The checkmark only fires when both price direction AND volume momentum agree on the new direction — reducing false triggers significantly.
Real-Time Bias Table
A live bias table sits in the corner of your chart and recalculates on every bar. It shows:
Bias — STRONG BULL / BULL / NEUTRAL / BEAR / STRONG BEAR derived from the ratio of bullish vs bearish volume over the last N bars
Bull Vol % / Bear Vol % — raw split of directional volume so you can see who is winning
Strength — current bar's volume tier (Extreme / Abnormal / Normal / Low)
Vol Ratio — current bar's volume as a multiple of the MA (e.g. 2.31x)
Reversal — lights up if a reversal triangle is active on the current bar
Divergence — shows BULL DIV ✦, BEAR DIV ✦, BULL ✓ CONFIRMED, or BEAR ✓ CONFIRMED depending on state
The header displays the current timeframe label so when you flip between 5m, 1H, and 4H you always know at a glance what the table is reading.
How to Use It
Watch for Extreme volume bars (bright lime or bright red) — these mark significant events, not noise
Wait for a reversal triangle on the following bars — this tells you the extreme move may be exhausted
Cross-reference the Bias Table — if the triangle aligns with the directional bias, the setup is stronger
For entries, wait for a divergence X followed by a ✓ confirmation — this two-step sequence is your highest-quality signal
Use the Vol Ratio field to gauge how significant the current bar is relative to recent history
Switch timeframes freely — the table and all signals recalculate instantly for each TF
Inputs Summary
Setting Purpose
Volume MA Length Baseline period for average volume
Adaptive MA Dynamically adjusts MA period using ATR volatility
Abnormal / Extreme Threshold StdDev multipliers for volume tier classification
Reversal Lookback Bars How many bars back to search for an extreme spike
Body Ratio Filter Minimum candle body size for reversal signals
Min Reversal Vol Minimum volume on the reversal bar itself
Divergence Lookback Swing high/low detection window
Bias Lookback Bars How many bars the bias table uses to calculate bull/bear split
VPSR Pro is designed as a confluence tool. No indicator replaces proper risk management and your own analysis. Always use stops.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.