PROTECTED SOURCE SCRIPT
Updated Triple VWAP: Anchored

# Triple VWAP: Anchored + Last 2 Sessions [Pro]
## 📊 Overview
**Triple VWAP** is a professional-grade Volume Weighted Average Price (VWAP) indicator designed for serious traders who need multi-timeframe volume analysis on a single chart. This indicator combines three powerful VWAP calculations: a custom **Anchored VWAP** from any historical date, a real-time **Current Session VWAP**, and **Previous Session VWAP** reference levels—all with configurable standard deviation bands.[1][2]
Perfect for intraday traders, swing traders, and institutional-level analysis on Indian markets (Nifty, BankNifty) and global instruments.[3]
***
## ✨ Key Features
### 🎯 Three Independent VWAP Calculations
**📍 Anchored VWAP (Long-term Reference)**
- Anchor VWAP from any specific date and time (year, month, day, hour, minute)
- Ideal for tracking price action from significant market events, earnings, or trend reversals
- Maintains accumulation from your chosen anchor point throughout the entire timeframe
**📅 Current Session VWAP (Real-Time)**
- Automatically resets at the start of each trading day
- Calculates dynamically as new bars form during the session
- Shows institutional trading levels and intraday fair value
**📆 Previous Session VWAP (Reference Levels)**
- Displays yesterday's final VWAP as horizontal reference lines
- Helps identify support/resistance zones from prior session
- Useful for gap analysis and opening range strategies
### 📐 Standard Deviation Bands
Each VWAP calculation includes optional standard deviation bands:
- **±1 SD** - Identifies normal price deviation zones
- **±2 SD** - Marks extreme price movements (high probability reversal zones)
- **±3 SD** - Ultra-extreme levels (rare price extensions)
Configure which SD levels to display for each VWAP type independently.[1]
### 🎨 Customizable Visual Settings
- **Independent Color Schemes**: Assign unique colors to each VWAP type and its SD bands
- **Adjustable Line Widths**: Configure VWAP and SD line thickness (1-5 for VWAP, 1-3 for SD)
- **Plot Styles**: Previous session plots use cross-style for clear differentiation from real-time plots
- **Background Zones**: Optional colored zones when price extends beyond ±2 SD levels
- **Session Labels**: Automatic date labels marking each VWAP anchor point
### 📊 Information Dashboard
Real-time statistics table displaying:
- Current VWAP values for all three calculations
- Live standard deviation values
- ±1 SD levels for quick reference
- Distance from price to each VWAP (percentage format)
- Session tracking counter
- Color-coded proximity indicators
***
## 🔧 How to Use
### For Intraday Trading
1. **Current Session VWAP** acts as dynamic support/resistance—price above VWAP indicates bullish bias, below indicates bearish bias
2. Use **±1 SD bands** for profit targets and stop-loss placement
3. **±2 SD touches** often signal mean reversion opportunities
4. **Previous Session VWAP** provides overnight gap reference levels
### For Swing Trading
1. **Anchored VWAP** from significant events (breakouts, earnings, trend changes) shows institutional cost basis
2. Price trading consistently above/below anchored VWAP confirms trend strength
3. SD band rejections provide high-probability entry zones
### For Multi-Timeframe Analysis
1. Combine all three VWAPs to identify confluence zones
2. When current session VWAP aligns with previous session and anchored VWAP, expect strong support/resistance
3. Monitor distance percentage to gauge overextension
***
## ⚙️ Input Parameters
**📍 Anchored VWAP Configuration**
- `Enable Anchored VWAP` - Toggle on/off
- `Year, Month, Day, Hour, Minute` - Set your custom anchor point (requires confirmation)
**📅 Session VWAP Toggles**
- `Enable Current Session VWAP` - Toggle real-time daily VWAP
- `Enable Previous Session VWAP` - Toggle yesterday's reference VWAP
**General Settings**
- `VWAP Source` - Choose calculation source (default: HLC3)
- `Show ±1/2/3 SD` - Enable/disable each standard deviation level
**Visual Customization**
- Individual color pickers for each VWAP type and SD bands
- Line width adjustments
- `Show VWAP Labels` - Date labels at anchor points
- `Show Info Table` - Statistics dashboard toggle
- `Show SD Zones` - Background coloring beyond ±2 SD
***
## 💡 Trading Applications
✅ **Mean Reversion Trades**: Enter when price touches ±2 SD with reversal confirmation
✅ **Trend Following**: Trade in direction when price holds above/below VWAP
✅ **Institutional Levels**: Anchored VWAP reveals where large players accumulated positions
✅ **Gap Trading**: Use previous session VWAP to gauge gap fill probability
✅ **Volume Profile Analysis**: VWAP represents fair value based on actual volume traded
✅ **Support/Resistance Confluence**: Multiple VWAP alignment creates high-probability zones
***
## 🎓 Understanding VWAP
VWAP is the average price weighted by volume—representing the true average price paid by all market participants during a specific period. Unlike simple moving averages, VWAP gives more weight to price levels with higher trading volume, making it particularly valuable for:[1]
- Institutional traders executing large orders
- Algorithmic trading systems
- Identifying fair value and overextended prices
- Minimizing market impact on large trades
***
## 📈 Chart Setup Recommendations
**Best Timeframes**: 1-minute to 15-minute charts for intraday; 1-hour to 4-hour for swing trading
**Compatible Markets**: Stocks, Indices (Nifty 50, Bank Nifty), Futures, Forex, Crypto
**Session Settings**: Works with standard daily sessions; automatically detects trading days (not calendar days)
***
## 🚀 What Makes This Indicator Unique
Unlike standard VWAP indicators that only show current session data, **Triple VWAP** provides:
- **Multi-session analysis** on a single chart without clutter
- **Historical anchoring** capability for event-driven analysis
- **Professional-grade statistics** dashboard
- **Independent customization** for each VWAP type
- **Optimized calculations** for real-time performance[3]
***
## ⚠️ Important Notes
- **Anchored VWAP** requires manual date input (use significant market events like breakouts, earnings, trend reversals)
- **Session detection** based on daily timeframe changes—works on all chart timeframes
- **Previous Session VWAP** displays as static horizontal lines (reference only, not recalculated)
- **Standard Deviations** calculated using volume-weighted variance formula
- Works best on instruments with **consistent volume data**
***
## 📝 Credits & License
This indicator is published under **TradingView House Rules**. Code is original and follows Pine Script v6 best practices for performance and maintainability.[4][3]
***
## 🤝 Support & Feedback
If you find this indicator valuable, please:
- ⭐ **Like** this publication
- 💬 **Comment** with your feedback or questions
- 🔔 **Follow** for updates and new releases
***
**Disclaimer**: This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always use proper risk management and combine with your own analysis before making trading decisions.[2]
***
## 📊 Overview
**Triple VWAP** is a professional-grade Volume Weighted Average Price (VWAP) indicator designed for serious traders who need multi-timeframe volume analysis on a single chart. This indicator combines three powerful VWAP calculations: a custom **Anchored VWAP** from any historical date, a real-time **Current Session VWAP**, and **Previous Session VWAP** reference levels—all with configurable standard deviation bands.[1][2]
Perfect for intraday traders, swing traders, and institutional-level analysis on Indian markets (Nifty, BankNifty) and global instruments.[3]
***
## ✨ Key Features
### 🎯 Three Independent VWAP Calculations
**📍 Anchored VWAP (Long-term Reference)**
- Anchor VWAP from any specific date and time (year, month, day, hour, minute)
- Ideal for tracking price action from significant market events, earnings, or trend reversals
- Maintains accumulation from your chosen anchor point throughout the entire timeframe
**📅 Current Session VWAP (Real-Time)**
- Automatically resets at the start of each trading day
- Calculates dynamically as new bars form during the session
- Shows institutional trading levels and intraday fair value
**📆 Previous Session VWAP (Reference Levels)**
- Displays yesterday's final VWAP as horizontal reference lines
- Helps identify support/resistance zones from prior session
- Useful for gap analysis and opening range strategies
### 📐 Standard Deviation Bands
Each VWAP calculation includes optional standard deviation bands:
- **±1 SD** - Identifies normal price deviation zones
- **±2 SD** - Marks extreme price movements (high probability reversal zones)
- **±3 SD** - Ultra-extreme levels (rare price extensions)
Configure which SD levels to display for each VWAP type independently.[1]
### 🎨 Customizable Visual Settings
- **Independent Color Schemes**: Assign unique colors to each VWAP type and its SD bands
- **Adjustable Line Widths**: Configure VWAP and SD line thickness (1-5 for VWAP, 1-3 for SD)
- **Plot Styles**: Previous session plots use cross-style for clear differentiation from real-time plots
- **Background Zones**: Optional colored zones when price extends beyond ±2 SD levels
- **Session Labels**: Automatic date labels marking each VWAP anchor point
### 📊 Information Dashboard
Real-time statistics table displaying:
- Current VWAP values for all three calculations
- Live standard deviation values
- ±1 SD levels for quick reference
- Distance from price to each VWAP (percentage format)
- Session tracking counter
- Color-coded proximity indicators
***
## 🔧 How to Use
### For Intraday Trading
1. **Current Session VWAP** acts as dynamic support/resistance—price above VWAP indicates bullish bias, below indicates bearish bias
2. Use **±1 SD bands** for profit targets and stop-loss placement
3. **±2 SD touches** often signal mean reversion opportunities
4. **Previous Session VWAP** provides overnight gap reference levels
### For Swing Trading
1. **Anchored VWAP** from significant events (breakouts, earnings, trend changes) shows institutional cost basis
2. Price trading consistently above/below anchored VWAP confirms trend strength
3. SD band rejections provide high-probability entry zones
### For Multi-Timeframe Analysis
1. Combine all three VWAPs to identify confluence zones
2. When current session VWAP aligns with previous session and anchored VWAP, expect strong support/resistance
3. Monitor distance percentage to gauge overextension
***
## ⚙️ Input Parameters
**📍 Anchored VWAP Configuration**
- `Enable Anchored VWAP` - Toggle on/off
- `Year, Month, Day, Hour, Minute` - Set your custom anchor point (requires confirmation)
**📅 Session VWAP Toggles**
- `Enable Current Session VWAP` - Toggle real-time daily VWAP
- `Enable Previous Session VWAP` - Toggle yesterday's reference VWAP
**General Settings**
- `VWAP Source` - Choose calculation source (default: HLC3)
- `Show ±1/2/3 SD` - Enable/disable each standard deviation level
**Visual Customization**
- Individual color pickers for each VWAP type and SD bands
- Line width adjustments
- `Show VWAP Labels` - Date labels at anchor points
- `Show Info Table` - Statistics dashboard toggle
- `Show SD Zones` - Background coloring beyond ±2 SD
***
## 💡 Trading Applications
✅ **Mean Reversion Trades**: Enter when price touches ±2 SD with reversal confirmation
✅ **Trend Following**: Trade in direction when price holds above/below VWAP
✅ **Institutional Levels**: Anchored VWAP reveals where large players accumulated positions
✅ **Gap Trading**: Use previous session VWAP to gauge gap fill probability
✅ **Volume Profile Analysis**: VWAP represents fair value based on actual volume traded
✅ **Support/Resistance Confluence**: Multiple VWAP alignment creates high-probability zones
***
## 🎓 Understanding VWAP
VWAP is the average price weighted by volume—representing the true average price paid by all market participants during a specific period. Unlike simple moving averages, VWAP gives more weight to price levels with higher trading volume, making it particularly valuable for:[1]
- Institutional traders executing large orders
- Algorithmic trading systems
- Identifying fair value and overextended prices
- Minimizing market impact on large trades
***
## 📈 Chart Setup Recommendations
**Best Timeframes**: 1-minute to 15-minute charts for intraday; 1-hour to 4-hour for swing trading
**Compatible Markets**: Stocks, Indices (Nifty 50, Bank Nifty), Futures, Forex, Crypto
**Session Settings**: Works with standard daily sessions; automatically detects trading days (not calendar days)
***
## 🚀 What Makes This Indicator Unique
Unlike standard VWAP indicators that only show current session data, **Triple VWAP** provides:
- **Multi-session analysis** on a single chart without clutter
- **Historical anchoring** capability for event-driven analysis
- **Professional-grade statistics** dashboard
- **Independent customization** for each VWAP type
- **Optimized calculations** for real-time performance[3]
***
## ⚠️ Important Notes
- **Anchored VWAP** requires manual date input (use significant market events like breakouts, earnings, trend reversals)
- **Session detection** based on daily timeframe changes—works on all chart timeframes
- **Previous Session VWAP** displays as static horizontal lines (reference only, not recalculated)
- **Standard Deviations** calculated using volume-weighted variance formula
- Works best on instruments with **consistent volume data**
***
## 📝 Credits & License
This indicator is published under **TradingView House Rules**. Code is original and follows Pine Script v6 best practices for performance and maintainability.[4][3]
***
## 🤝 Support & Feedback
If you find this indicator valuable, please:
- ⭐ **Like** this publication
- 💬 **Comment** with your feedback or questions
- 🔔 **Follow** for updates and new releases
***
**Disclaimer**: This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always use proper risk management and combine with your own analysis before making trading decisions.[2]
***
Release Notes
Minor FIxProtected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.