OPEN-SOURCE SCRIPT
Volume Profile Fixed Range + Dynamic Anchored VWAP [Integrated]

VP Fixed Range + Dynamic VWAP combines two professional tools for analyzing order flow and price behavior into a single advanced indicator:
• Fixed Range Volume Profile
• Dynamic Swing VWAP
The goal is to provide a comprehensive view of market structure, highlighting where volume has been traded and how the price moves relative to value areas.
This indicator is particularly useful for intraday traders, swing traders, and market structure analysts.
🔵 Fixed Range Volume Profile
The Volume Profile module calculates the distribution of volume over a defined range of candles and displays it directly on the chart.
Main Features:
1. Flexible Anchoring
• Ability to anchor the profile to the left or right
• Useful for historical analysis or forward projections
2. Value Area
• Automatic Value Area calculation (default 70%)
• Highlights areas where the main volume is concentrated
3. Point of Control (POC)
• Identifies the level with the maximum volume
• Displayed as a horizontal line and optional POC label
4. Buy vs. Sell Analysis
Each profile bar displays the estimated percentage:
%Buy - %Sell
This allows you to identify:
• accumulation zones
• distribution zones
• possible volume support and resistance
5. Complete Customization
• Profile Resolution
• Calculation Depth
• Offset
• Volume Up/Down Colors
• Internal Percentage Display
🟢 Swing-Based Dynamic VWAP
The second component of the indicator is a dynamic VWAP that automatically resets on market pivots.
Instead of using fixed sessions, this VWAP:
• automatically anchors to swing highs and swing lows
• follows the trend structure
Main features:
1. Swing detection
• Automatic pivot identification via Swing Period
2. Dynamic VWAP reset
• Each change in direction creates a new VWAP anchored to the swing
3. Market structure The following are automatically marked:
• HH – Higher High
• HL – Higher Low
• LH – Lower High
• LL – Lower Low
This helps you read the market structure directly on the chart.
4. Adaptive Price Tracking Algorithm that adjusts the sensitivity of the VWAP based on volatility:
• Optional adjustment via ATR ratio
• Volatility Bias parameter
The result is a more responsive VWAP during high volatility and more stable in slow markets.
📊 How to use this indicator
Some common uses:
• Volumetric support and resistance
• POC as a price magnet
• High/Low Value Area as key levels
Trend confirmation
• Price above dynamic VWAP → bullish bias
• Price below dynamic VWAP → bearish bias
Signal confluence The most interesting zones are when:
• Dynamic VWAP
• POC
• Value Area
align on the same price level.
⚙️ Main Parameters
• Volume Profile
• Calculation Depth
• Resolution Rows
• Value Area %
• Anchoring Side
• Volume Colors
• Buy/Sell percentages
• Dynamic VWAP
• Swing Period
• Adaptive Price Tracking
• ATR Volatility Adaptation
• VWAP Style and Colors
✔️ Ideal for
• Futures trading
• Crypto trading
• Indices
• Forex
• Intraday analysis
• Market structure analysis
• Order flow context
• Fixed Range Volume Profile
• Dynamic Swing VWAP
The goal is to provide a comprehensive view of market structure, highlighting where volume has been traded and how the price moves relative to value areas.
This indicator is particularly useful for intraday traders, swing traders, and market structure analysts.
🔵 Fixed Range Volume Profile
The Volume Profile module calculates the distribution of volume over a defined range of candles and displays it directly on the chart.
Main Features:
1. Flexible Anchoring
• Ability to anchor the profile to the left or right
• Useful for historical analysis or forward projections
2. Value Area
• Automatic Value Area calculation (default 70%)
• Highlights areas where the main volume is concentrated
3. Point of Control (POC)
• Identifies the level with the maximum volume
• Displayed as a horizontal line and optional POC label
4. Buy vs. Sell Analysis
Each profile bar displays the estimated percentage:
%Buy - %Sell
This allows you to identify:
• accumulation zones
• distribution zones
• possible volume support and resistance
5. Complete Customization
• Profile Resolution
• Calculation Depth
• Offset
• Volume Up/Down Colors
• Internal Percentage Display
🟢 Swing-Based Dynamic VWAP
The second component of the indicator is a dynamic VWAP that automatically resets on market pivots.
Instead of using fixed sessions, this VWAP:
• automatically anchors to swing highs and swing lows
• follows the trend structure
Main features:
1. Swing detection
• Automatic pivot identification via Swing Period
2. Dynamic VWAP reset
• Each change in direction creates a new VWAP anchored to the swing
3. Market structure The following are automatically marked:
• HH – Higher High
• HL – Higher Low
• LH – Lower High
• LL – Lower Low
This helps you read the market structure directly on the chart.
4. Adaptive Price Tracking Algorithm that adjusts the sensitivity of the VWAP based on volatility:
• Optional adjustment via ATR ratio
• Volatility Bias parameter
The result is a more responsive VWAP during high volatility and more stable in slow markets.
📊 How to use this indicator
Some common uses:
• Volumetric support and resistance
• POC as a price magnet
• High/Low Value Area as key levels
Trend confirmation
• Price above dynamic VWAP → bullish bias
• Price below dynamic VWAP → bearish bias
Signal confluence The most interesting zones are when:
• Dynamic VWAP
• POC
• Value Area
align on the same price level.
⚙️ Main Parameters
• Volume Profile
• Calculation Depth
• Resolution Rows
• Value Area %
• Anchoring Side
• Volume Colors
• Buy/Sell percentages
• Dynamic VWAP
• Swing Period
• Adaptive Price Tracking
• ATR Volatility Adaptation
• VWAP Style and Colors
✔️ Ideal for
• Futures trading
• Crypto trading
• Indices
• Forex
• Intraday analysis
• Market structure analysis
• Order flow context
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。