OPEN-SOURCE SCRIPT

Piv X Pro

67
Piv X Pro - Advanced Pivot Detection with Multi-Timeframe Confluence Analysis
Overview
Piv X Pro identifies pivot highs and lows using a confluence scoring system. It combines pivot detection, volume-weighted analysis, Williams %R divergence, and multi-timeframe confirmation to highlight higher-probability pivot zones.
What Makes This Script Original
This script combines several components into a single workflow:
Dynamic pivot strength calculation based on ATR
Confluence scoring (10+ factors) to rank pivot quality
Multi-timeframe VWAP analysis (bottom/top extremes plus period-based VWAPs)
Williams %R divergence detection with anchored VWAPs
Market structure shift (CHoCH) identification
Real-time and confirmation modes for different trading styles
How It Works
Pivot Detection:
Uses ATR-based dynamic pivot strength (adjusts to volatility)
Filters pivots by significance (distance from recent averages)
Optional volume confirmation
Real-time mode for immediate detection or confirmation mode for verified pivots
Confluence Scoring System:
Each pivot receives a score (0-100+) based on:
Volume spikes (15 points)
Higher timeframe trend alignment (20 points)
RSI oversold/overbought conditions (25 points)
Price exhaustion signals (10 points)
RSI divergence (15 points)
Swing failure patterns (15 points)
Liquidity sweeps (10 points)
Candle reversal confirmation (10 points)
Key level alignment (10 points)
Fair value gap fills (10 points)
Session weighting (10 points)
Multi-timeframe pivot confluence (15 points)
Major Pivot Thresholds:
Real-time mode: 60+ confluence score
Confirmation mode: 80+ confluence score
Golden zones: 90+ score (highlighted differently)
VWAP Analysis:
Bottom/Top VWAPs: Anchored to absolute extremes within a lookback period
Period VWAPs: Weekly, Monthly, Yearly, plus 4D, 9D, 4H, 8H
Previous period VWAPs: Shows last period's VWAP for reference
Williams Divergence VWAPs: Anchored VWAPs triggered by bullish/bearish divergences
Market Structure:
Identifies Market Structure Shifts (CHoCH) when pivot sequences break
Draws structure lines connecting major pivots
Visual zones around major pivot levels
How to Use
Setup:
Apply to any timeframe (optimized for 1min, 5min, 15min, 1H)
Adjust pivot detection sensitivity via "ATR Pivot Strength Multiplier"
Choose Real-Time Mode (immediate) or Confirmation Mode (verified pivots)
Reading the Signals:
Major Pivot Low (PL): Green zones with confluence score
Major Pivot High (PH): Purple zones with confluence score
Golden Zones: Yellow highlights (90+ score)
CHoCH: Blue dashed lines marking structure breaks
Williams Divergence: Triangles + anchored VWAP lines
Trading Applications:
Support/Resistance: Use major pivot zones as key levels
Entry Timing: Combine confluence scores with price action
Trend Following: Use CHoCH signals for trend changes
Divergence Trading: Williams %R divergences with anchored VWAPs
Multi-Timeframe: Use HTF trend filter and VWAPs for context
Important Notes:
This is a technical analysis tool, not a trading system
Confluence scores indicate probability, not guarantees
Past performance does not predict future results
Always use proper risk management
Combine with your own analysis and strategy
Key Features
Pivot Quality Filters:
ATR-based significance filtering
Volume confirmation (optional)
Multi-timeframe confluence
Session-based weighting (optional)
Visual Elements:
Pivot zones (extendable boxes)
Structure lines (connecting major pivots)
CHoCH markers (market structure shifts)
Multiple VWAP overlays
Williams divergence markers
Customization:
Adjustable pivot strength multiplier
Enable/disable individual confluence factors
Customizable colors and visual styles
Alert system for major pivots and structure shifts
Technical Details
Open Source:
This script is open source. The code is available for review and modification. Users can see exactly how calculations are performed.
Calculations:
Pivot detection uses ta.pivothigh() and ta.pivotlow() with dynamic strength
VWAP calculations use cumulative price×volume / cumulative volume
Confluence scoring is additive based on multiple technical factors
Williams %R divergence uses pivot comparison logic
Limitations:
Historical data access limits apply (Pine Script constraints)
Structure lines limited to 500 bars for performance
Real-time mode may show pivots that later invalidate
Confirmation mode adds lag but increases reliability
Disclaimer
This script is for educational and informational purposes. It does not provide financial advice. Trading involves risk. Always do your own research and use proper risk management. Past performance does not guarantee future results.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。