OPEN-SOURCE SCRIPT
Updated Dual Volume Divergence Index [DW]

This is an experimental variation of Paul L. Dysart's Positive Volume Index and Negative Volume Index that tracks the divergences between the PVI and its EMA, and the NVI and its EMA, then plots both together for comparison.
This tool can be used to identify trending price activity.
This tool can be used to identify trending price activity.
Release Notes
Simple update: Added custom bar colorization.
Release Notes
Simple update:Updated color scheme based on PVI and NVI divergence strength.
Release Notes
Updates:Added optional smoothing to the script using an exponential moving average to filter noisy outputs.
Added a mode selection with three modes to choose from:
- Dual Index Mode, which displays the original DVDI
- Oscillator Mode, which displays the difference between the PVDI and NVDI as a centered oscillator
- Bar Counter Mode, which displays the number of bars in which volume divergence is in a positive dominant phase and negative dominant phase
Release Notes
Updates:Migrated code from pine v2 to pine v3.
Added a source price input.
Added an option to use tick volume rather than real volume. If the chart being analyzed has no real volume component, use tick volume.
Condensed DVDI's operations into a singular function for optimized performance.
Fixed a small issue with the bar counter.
Mode selection is now an easy to use dropdown menu.
Color schemes have been updated for greater detail.
Release Notes
Updates:-> Migrated to v4.
-> Updated DVDI function.
-> Corrected NaN values to stabilize initial conditions.
-> Reorganized script structure.
-> Revamped color scheme.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For my full list of premium tools, check the blog:
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For my full list of premium tools, check the blog:
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
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.