Price Volume Divergence (PVD) is designed to add extra confluence to volume analysis and mark potential reversals in the prevailing trend.
The script uses a simple correlation of price and volume over the predefined time horizon in "PVD Length".
If the correlation is positive (>0) the plotted line gets coloured blue.
If the correlation is negative (<0) the plotted line get coloured in red.
PVD should not be used on its own but in conjunction with other indicators!