PROTECTED SOURCE SCRIPT
מעודכן VPT Osc - Call/Put Mirror

# 📊 VPT Oscillator with Call/Put Mirror & Trading Signals Dashboard
## Overview
Advanced **Volume Price Trend (VPT) Oscillator** specifically designed for **options traders** who want to analyze both CALL and PUT options simultaneously. This indicator provides real-time divergence detection, signal strength scoring, and mirror analysis to identify high-probability reversal and continuation setups.
## 🎯 What Makes This Unique?
### **Call/Put Mirror Technology**
- Automatically detects if you're viewing a CALL or PUT option
- Simultaneously plots the VPT of the opposite option (mirror)
- Identifies contrarian opportunities when current and mirror options show conflicting signals
- Perfect for options spreads and hedging strategies
### **Comprehensive Trading Signals Dashboard**
A real-time dashboard displays:
- **Active Signal** - Current divergence type (Regular/Hidden Bullish/Bearish)
- **Signal Score** - 0-100 probability rating based on multiple confirmation filters
- **Trade Action** - Clear BUY CALLS/PUTS recommendations
- **Position Size** - Risk-adjusted sizing based on signal strength
- **Mirror Analysis** - Opposite option's signal for contrarian plays
- **Volume & Change%** - Live price action data for both options
- **Risk Management** - Automatic stop-loss and target calculations
## 🔍 Key Features
### 1. **Four Divergence Types**
**Primary Entry Signals:**
- ✅ **Regular Bullish Divergence** - Price makes lower low, VPT makes higher low → BUY CALLS
- ✅ **Regular Bearish Divergence** - Price makes higher high, VPT makes lower high → BUY PUTS
**Advanced Continuation Signals:**
- 🔄 **Hidden Bullish Divergence** - Price makes higher low, VPT makes lower low → ADD TO CALLS
- 🔄 **Hidden Bearish Divergence** - Price makes lower high, VPT makes higher high → ADD TO PUTS
### 2. **Multi-Factor Signal Scoring System**
Each signal receives a score (0-100) based on:
- **Divergence Strength** (30 points) - Magnitude of price/volume divergence
- **Volume Confirmation** (20 points) - Above-average volume present
- **ADX Trend Filter** (20 points) - Strong trend confirmation
- **Multi-Timeframe Alignment** (20 points) - Higher timeframe agreement
- **RSI Extremes** (10 points) - Oversold/overbought confirmation
**Score Interpretation:**
- 90-100: Extremely Strong → Full position size (3-5% capital)
- 70-89: Strong → Standard position (2-3% capital)
- 50-69: Moderate → Half position (1% capital)
- <50: Weak → AVOID or paper trade only
### 3. **Zero Line Cross Strategy**
- 🚀 **Bullish Cross** - VPT crosses above zero → Mass buying pressure entering
- ⚠️ **Bearish Cross** - VPT crosses below zero → Distribution phase starting
- Best when combined with divergence signals (Score 70+)
### 4. **ATR Dynamic Bands**
Identifies extreme overbought/oversold conditions:
- **Upper Band Touch + Bearish Divergence (75+)** = 🔴 AGGRESSIVE PUT buying
- **Lower Band Touch + Bullish Divergence (75+)** = 🟢 AGGRESSIVE CALL buying
- Auto-adjusts to market volatility
### 5. **Contrarian Mirror Analysis**
🔥 **High Probability Reversals** detected when:
- Current option shows bearish divergence (Score 70+)
- Mirror option shows bullish divergence (Score 70+)
- Suggests sharp market reversal imminent
## 📈 Trading Strategies
### Strategy 1: Primary Divergence Entry
1. Wait for Regular Bullish/Bearish divergence
2. Confirm Score ≥ 70
3. Check volume confirmation (✓ Confirmed)
4. Enter with standard position size
5. Stop loss: Below recent swing low (for calls) / Above swing high (for puts)
6. Target: 2:1 to 3:1 risk-reward ratio
### Strategy 2: Hidden Divergence - Add to Winners
1. Already holding CALL/PUT position
2. Hidden divergence appears in same direction
3. Add to position during pullback/bounce
4. Lower risk (trend already established)
### Strategy 3: Mirror Contrarian Play
1. Current option shows bearish divergence
2. Mirror option shows strong bullish signal
3. Both scores ≥ 70
4. **EXIT current position → SWITCH to mirror option**
5. Captures sharp reversals
### Strategy 4: Zero Line Momentum
1. VPT crosses above/below zero line
2. Combine with Score 65+ divergence
3. Use ATM or slightly OTM options
4. Best for 1-3 day expiries (quick moves)
### Strategy 5: ATR Band Extremes
1. Wait for VPT to touch upper/lower band
2. Confirm with opposing divergence (Score 75+)
3. Enter aggressive position
4. Target: Return to zero line
## ⚙️ Customizable Settings
### Signal Filters
- **ADX Trend Filter** - Minimum ADX threshold for trend strength
- **Volume Confirmation** - Volume multiplier (1.2x default)
- **MTF Confirmation** - Higher timeframe alignment
- **Signal Cooldown** - Minimum bars between signals (prevents spam)
- **Minimum Score** - Filter signals below threshold
### Visual Options
- **ATR Dynamic Bands** - Show/hide volatility bands
- **Mirror Display** - Toggle mirror option VPT
- **Table Position** - 9 positions (top/middle/bottom × left/center/right)
- **Table Size** - Auto, Tiny, Small, Normal, Large, Huge
- **Risk Management Display** - Show/hide stop-loss and targets
### Divergence Detection
- **Pivot Lookback** - Sensitivity for divergence detection
- **Lookback Range** - Min/max bars for divergence confirmation
- **Individual Toggle** - Enable/disable each divergence type
## 📱 Dashboard Layout
**Top Rows (Critical Info):**
1. Mirror Signal & Score
2. Active Signal
3. Signal Score (0-100)
4. Zero Line Status
5. Volume Confirmation
6. Trade Action
**Middle Rows (Confirmations):**
7. Position Sizing
8. ADX Trend Strength
9. Higher Timeframe Alignment
10. ATR Band Status
**Bottom Rows (Risk Management):**
11. Contrarian Alert (if applicable)
12. Stop Loss Level
13. Target (R:R Ratio)
14. Expected Win Rate
## 🎨 Visual Elements
- **Color-coded VPT areas** - Aqua (bullish) / Orange (bearish)
- **Mirror VPT overlay** - Fuchsia (bull) / Yellow (bear) with transparency
- **Divergence lines** - Connect pivot points automatically
- **Score labels** - Show signal strength directly on chart
- **ATR bands** - Dynamic support/resistance zones
- **Background colors** - MTF trend confirmation (subtle)
## 💡 Best Practices
1. **Wait for Score ≥ 70** on primary signals for best win rate
2. **Always check volume confirmation** before entering
3. **Use mirror analysis** for additional edge
4. **Respect stop losses** - Options decay fast
5. **Consider expiry dates** - Minimum 5-7 days recommended
6. **Scale positions** based on score (90+ = full size)
7. **Watch zero line** for momentum shifts
## ⚠️ Risk Disclaimer
- This indicator is designed for **educational purposes** and analysis
- Options trading carries substantial risk of loss
- Past divergences do not guarantee future performance
- Always use proper position sizing (1-5% per trade recommended)
- Expected win rate ranges from 55-80% depending on score threshold
- Combine with fundamental analysis and broader market context
## 📊 Recommended Timeframes
- **Intraday Scalping:** 5min, 15min charts
- **Swing Trading:** 1H, 4H charts
- **Position Trading:** Daily charts
Works best on **liquid option contracts** with tight bid-ask spreads.
## 🔧 Technical Details
- Built on **Volume Price Trend (PVT)** oscillator
- Dual EMA crossover (Short: 3, Long: 20 default)
- Multi-factor scoring algorithm with weighted components
- Real-time mirror symbol parsing for NSE/exchange formats
- Dynamic ATR-based volatility bands
- Automatic pivot detection for divergences
## 📚 What You Get
✅ Professional-grade divergence detection
✅ Real-time signal scoring (0-100)
✅ Automatic mirror option analysis
✅ Trading signals dashboard
✅ Risk management calculator
✅ Volume and price change tracking
✅ Multiple confirmation filters
✅ Fully customizable settings
✅ Works on all option exchanges
***
**Perfect for:** Options traders, day traders, swing traders, divergence traders, volume analysis enthusiasts
**Works with:** CALL options, PUT options, Index options, Stock options, Futures options
**Supports:** NSE, NYSE, NASDAQ, and other major exchanges (auto-detects option format)
***
*If you find this indicator useful, please leave a comment or boost! Your feedback helps improve future versions.*
*For questions or feature requests, feel free to comment below.*
***
## 📝 Version History
**v1.0** - Initial Release
- Call/Put mirror functionality
- Four divergence types with scoring
- Trading signals dashboard
- ATR dynamic bands
- Zero line cross detection
- Volume and change% tracking
- Risk management module
***
**Tags:** #options #VPT #divergence #volumeanalysis #callput #tradingsignals #optionstrading #technicalanalysis #volumepricetrend
## Overview
Advanced **Volume Price Trend (VPT) Oscillator** specifically designed for **options traders** who want to analyze both CALL and PUT options simultaneously. This indicator provides real-time divergence detection, signal strength scoring, and mirror analysis to identify high-probability reversal and continuation setups.
## 🎯 What Makes This Unique?
### **Call/Put Mirror Technology**
- Automatically detects if you're viewing a CALL or PUT option
- Simultaneously plots the VPT of the opposite option (mirror)
- Identifies contrarian opportunities when current and mirror options show conflicting signals
- Perfect for options spreads and hedging strategies
### **Comprehensive Trading Signals Dashboard**
A real-time dashboard displays:
- **Active Signal** - Current divergence type (Regular/Hidden Bullish/Bearish)
- **Signal Score** - 0-100 probability rating based on multiple confirmation filters
- **Trade Action** - Clear BUY CALLS/PUTS recommendations
- **Position Size** - Risk-adjusted sizing based on signal strength
- **Mirror Analysis** - Opposite option's signal for contrarian plays
- **Volume & Change%** - Live price action data for both options
- **Risk Management** - Automatic stop-loss and target calculations
## 🔍 Key Features
### 1. **Four Divergence Types**
**Primary Entry Signals:**
- ✅ **Regular Bullish Divergence** - Price makes lower low, VPT makes higher low → BUY CALLS
- ✅ **Regular Bearish Divergence** - Price makes higher high, VPT makes lower high → BUY PUTS
**Advanced Continuation Signals:**
- 🔄 **Hidden Bullish Divergence** - Price makes higher low, VPT makes lower low → ADD TO CALLS
- 🔄 **Hidden Bearish Divergence** - Price makes lower high, VPT makes higher high → ADD TO PUTS
### 2. **Multi-Factor Signal Scoring System**
Each signal receives a score (0-100) based on:
- **Divergence Strength** (30 points) - Magnitude of price/volume divergence
- **Volume Confirmation** (20 points) - Above-average volume present
- **ADX Trend Filter** (20 points) - Strong trend confirmation
- **Multi-Timeframe Alignment** (20 points) - Higher timeframe agreement
- **RSI Extremes** (10 points) - Oversold/overbought confirmation
**Score Interpretation:**
- 90-100: Extremely Strong → Full position size (3-5% capital)
- 70-89: Strong → Standard position (2-3% capital)
- 50-69: Moderate → Half position (1% capital)
- <50: Weak → AVOID or paper trade only
### 3. **Zero Line Cross Strategy**
- 🚀 **Bullish Cross** - VPT crosses above zero → Mass buying pressure entering
- ⚠️ **Bearish Cross** - VPT crosses below zero → Distribution phase starting
- Best when combined with divergence signals (Score 70+)
### 4. **ATR Dynamic Bands**
Identifies extreme overbought/oversold conditions:
- **Upper Band Touch + Bearish Divergence (75+)** = 🔴 AGGRESSIVE PUT buying
- **Lower Band Touch + Bullish Divergence (75+)** = 🟢 AGGRESSIVE CALL buying
- Auto-adjusts to market volatility
### 5. **Contrarian Mirror Analysis**
🔥 **High Probability Reversals** detected when:
- Current option shows bearish divergence (Score 70+)
- Mirror option shows bullish divergence (Score 70+)
- Suggests sharp market reversal imminent
## 📈 Trading Strategies
### Strategy 1: Primary Divergence Entry
1. Wait for Regular Bullish/Bearish divergence
2. Confirm Score ≥ 70
3. Check volume confirmation (✓ Confirmed)
4. Enter with standard position size
5. Stop loss: Below recent swing low (for calls) / Above swing high (for puts)
6. Target: 2:1 to 3:1 risk-reward ratio
### Strategy 2: Hidden Divergence - Add to Winners
1. Already holding CALL/PUT position
2. Hidden divergence appears in same direction
3. Add to position during pullback/bounce
4. Lower risk (trend already established)
### Strategy 3: Mirror Contrarian Play
1. Current option shows bearish divergence
2. Mirror option shows strong bullish signal
3. Both scores ≥ 70
4. **EXIT current position → SWITCH to mirror option**
5. Captures sharp reversals
### Strategy 4: Zero Line Momentum
1. VPT crosses above/below zero line
2. Combine with Score 65+ divergence
3. Use ATM or slightly OTM options
4. Best for 1-3 day expiries (quick moves)
### Strategy 5: ATR Band Extremes
1. Wait for VPT to touch upper/lower band
2. Confirm with opposing divergence (Score 75+)
3. Enter aggressive position
4. Target: Return to zero line
## ⚙️ Customizable Settings
### Signal Filters
- **ADX Trend Filter** - Minimum ADX threshold for trend strength
- **Volume Confirmation** - Volume multiplier (1.2x default)
- **MTF Confirmation** - Higher timeframe alignment
- **Signal Cooldown** - Minimum bars between signals (prevents spam)
- **Minimum Score** - Filter signals below threshold
### Visual Options
- **ATR Dynamic Bands** - Show/hide volatility bands
- **Mirror Display** - Toggle mirror option VPT
- **Table Position** - 9 positions (top/middle/bottom × left/center/right)
- **Table Size** - Auto, Tiny, Small, Normal, Large, Huge
- **Risk Management Display** - Show/hide stop-loss and targets
### Divergence Detection
- **Pivot Lookback** - Sensitivity for divergence detection
- **Lookback Range** - Min/max bars for divergence confirmation
- **Individual Toggle** - Enable/disable each divergence type
## 📱 Dashboard Layout
**Top Rows (Critical Info):**
1. Mirror Signal & Score
2. Active Signal
3. Signal Score (0-100)
4. Zero Line Status
5. Volume Confirmation
6. Trade Action
**Middle Rows (Confirmations):**
7. Position Sizing
8. ADX Trend Strength
9. Higher Timeframe Alignment
10. ATR Band Status
**Bottom Rows (Risk Management):**
11. Contrarian Alert (if applicable)
12. Stop Loss Level
13. Target (R:R Ratio)
14. Expected Win Rate
## 🎨 Visual Elements
- **Color-coded VPT areas** - Aqua (bullish) / Orange (bearish)
- **Mirror VPT overlay** - Fuchsia (bull) / Yellow (bear) with transparency
- **Divergence lines** - Connect pivot points automatically
- **Score labels** - Show signal strength directly on chart
- **ATR bands** - Dynamic support/resistance zones
- **Background colors** - MTF trend confirmation (subtle)
## 💡 Best Practices
1. **Wait for Score ≥ 70** on primary signals for best win rate
2. **Always check volume confirmation** before entering
3. **Use mirror analysis** for additional edge
4. **Respect stop losses** - Options decay fast
5. **Consider expiry dates** - Minimum 5-7 days recommended
6. **Scale positions** based on score (90+ = full size)
7. **Watch zero line** for momentum shifts
## ⚠️ Risk Disclaimer
- This indicator is designed for **educational purposes** and analysis
- Options trading carries substantial risk of loss
- Past divergences do not guarantee future performance
- Always use proper position sizing (1-5% per trade recommended)
- Expected win rate ranges from 55-80% depending on score threshold
- Combine with fundamental analysis and broader market context
## 📊 Recommended Timeframes
- **Intraday Scalping:** 5min, 15min charts
- **Swing Trading:** 1H, 4H charts
- **Position Trading:** Daily charts
Works best on **liquid option contracts** with tight bid-ask spreads.
## 🔧 Technical Details
- Built on **Volume Price Trend (PVT)** oscillator
- Dual EMA crossover (Short: 3, Long: 20 default)
- Multi-factor scoring algorithm with weighted components
- Real-time mirror symbol parsing for NSE/exchange formats
- Dynamic ATR-based volatility bands
- Automatic pivot detection for divergences
## 📚 What You Get
✅ Professional-grade divergence detection
✅ Real-time signal scoring (0-100)
✅ Automatic mirror option analysis
✅ Trading signals dashboard
✅ Risk management calculator
✅ Volume and price change tracking
✅ Multiple confirmation filters
✅ Fully customizable settings
✅ Works on all option exchanges
***
**Perfect for:** Options traders, day traders, swing traders, divergence traders, volume analysis enthusiasts
**Works with:** CALL options, PUT options, Index options, Stock options, Futures options
**Supports:** NSE, NYSE, NASDAQ, and other major exchanges (auto-detects option format)
***
*If you find this indicator useful, please leave a comment or boost! Your feedback helps improve future versions.*
*For questions or feature requests, feel free to comment below.*
***
## 📝 Version History
**v1.0** - Initial Release
- Call/Put mirror functionality
- Four divergence types with scoring
- Trading signals dashboard
- ATR dynamic bands
- Zero line cross detection
- Volume and change% tracking
- Risk management module
***
**Tags:** #options #VPT #divergence #volumeanalysis #callput #tradingsignals #optionstrading #technicalanalysis #volumepricetrend
הערות שחרור
Minor Fixסקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.