Dual Volume Divergence Line (DVD/Line)

Dual Volume Divergence Line (DVD/Line)

1. Introduction

The Dual Volume Divergence Line (DVD/Line) is a sophisticated technical analysis tool designed to detect divergences between price and volume using two complementary volume indexes: the Positive Volume Index (PVI) and the Negative Volume Index (NVI). Its main goal is to provide early signals of potential trend reversals by analyzing volume behavior.

In addition to plotting a combined divergence line (DVD), the indicator also draws dynamic bands and labels bullish and bearish divergences — both regular and hidden — directly on the chart. This makes it a powerful visual aid for identifying trading opportunities.

2. Indicator Foundation

The calculation starts with a typical price, obtained as the average of the high, low, and close for each bar. Based on this input, two indices are constructed:

  • PVI (Positive Volume Index): Accumulates the typical price increase when the current bar closes higher than the previous one.
  • NVI (Negative Volume Index): Accumulates the typical price decrease when the current bar closes lower than the previous one.

Both indexes are smoothed using a weighted average, and their divergence from price is calculated. The difference between the PVI and NVI divergences forms the basis of the DVD Line, which reflects the directional pressure of volume.

This DVD Line is further compared to a linear regression to visually detect potential momentum shifts.

3. Calculation and Components

Customizable Parameters

  • zaman: Sampling period for smoothing PVI/NVI (default: 17).
  • genislik: Width for smoothing and band projection (default: 12).
  • takip: Length for linear regression (default: 3).
  • carpan: Multiplier to adjust indicator sensitivity.
  • gosterBand: Toggle band visualization.
  • gosterNormal: Show regular divergences (on/off).
  • gosterGizli: Show hidden divergences (on/off).
  • Ir: Divergence detection range.
  • Ntype: Choose raw (Dvdi) or smoothed (DVD) data for divergence detection.

Main Calculations

  • PVI & NVI Divergences: Computed by subtracting their respective weighted averages from the current value.
  • DVD Line (Dvdi): The difference between PVI and NVI divergences, multiplied by a factor.
  • Smoothed DVD (DVD): Weighted average of Dvdi added to the typical price.
  • Regression Line (DVD2): A linear regression of the DVD, used for conditional coloring.

Dynamic Bands

Upper and lower bands are calculated using the Root Mean Square (RMS) of the highest and lowest DVD values over the smoothing window. These bands act as dynamic zones to evaluate extreme conditions and are rescaled to highlight outliers.

4. Divergence Detection

The indicator identifies two main types of divergences:

  • Regular Divergences: Price makes a new high/low, but the oscillator does not confirm it.
  • Hidden Divergences: Price does not make a new high/low, but the oscillator does.

Divergences are detected by locating pivot points in both price and the selected oscillator (IrGo). When a new pivot is formed, it is compared to the previous one, and if a divergence condition is met, the appropriate label is drawn:

  • "Bull" for regular bullish divergence.
  • "hid.Bull" for hidden bullish divergence.
  • "Bear" for regular bearish divergence.
  • "hid.Bear" for hidden bearish divergence.

All labels are offset using ATR to avoid overlapping with price bars.

5. How to Interpret the Indicator

  • DVD Line: Represents volume directional strength. Rising above its regression line (DVD2) suggests bullish pressure, while falling below it indicates bearish momentum.
  • Bands: Function as dynamic overbought and oversold levels. Crosses or rejections around these levels can signal potential reversals.
  • Divergences: Serve as advanced warning signals, especially effective near key support or resistance zones.

The indicator works well across different timeframes, making it suitable for scalpers, intraday traders, and swing traders alike.

6. Indicator Settings

Here’s a breakdown of each adjustable parameter:

  • zaman (Sampling Period): Controls signal sensitivity. Lower values yield more signals but may be noisier.
  • genislik (Band Width): Affects smoothing degree. Higher values result in smoother lines.
  • takip (Trailing Length): Number of bars for linear regression, used for coloring the DVD Line.
  • carpan (Multiplier): Adjusts how strongly PVI and NVI divergences influence the DVD Line.
  • gosterBand: Enables/disables band visualization.
  • gosterNormal and gosterGizli: Toggle the display of regular and hidden divergences.
  • Ir: Sets the pivot detection range; higher values result in fewer but stronger signals.
  • Ntype: Allows switching between raw (Dvdi) and smoothed (DVD) divergence sources.

It is recommended to test different configurations based on the asset and timeframe to optimize the indicator’s performance.

7. Indicator Code

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar avatar avatar
Related users ' posts
marcov66 Hi, it seems a very useful indicator. Unfortunately the link here for the full explanation d...
TACBOLSA Discontinued indicator. we are sorry.
Azzuerus Bonjour, je teste et j'utilise vos indicateurs depuis plusieurs années, et ils me sont dev...
bremze33 Another thing. Is it possible to make the graph lines a little thicker and not so long? Be...
giumagi Hi Sir, very good job done with this indicator, May I ask you to explain what is the line VW...
pmdr1969 Hola soy nuevo en en esto. ¿Hay algo parecido pero pudiendo tu elegir las velas a a analizar...
Nicolas Add indicator on price doesnt require any specific type of subcription. Click on the wrench ...
tahiti bonjour j'ai une petite question comment peux on enlevé la bar blanche sur la bougie en cour...
sixeight Hi Kris, is there a way to increase the number of rows? I get a loop error
Nicolas Good job Gabri, I confirm that with the new ProRealTime v11, everyone will be able to use in...
Slowlyslowly can u just help me with the exact definition of percbox , mm and period to understand will a...
Real Pro Great work gabri. I have this coded on Amibroker and I have done lots of backtesting but ne...
gabri Hi Real Pro, this indicator assists novices of the Wyckoff system. Wyckoff himself thought t...
tatie hi Gabri, I just came across the wyckoff method and was looking for the weiss wave indica...
Jesper Great share!
eckaw Hi Nicolas, I'm using this indicator when there is confluence over 3 different timeframes (5...
Nicolas Yes it is indeed possible. Create a topic in the screener forum and explain what you need an...
KyleReed i've been using this for a few days now and it's really helped me a lot in timing the execut...
luxrun Thanks, bolsatrilera, for a very good and solid screener!
luxrun sorry... indicator!
Lily Rios Gracias por el indicador, tengo una pregunta necesito programar un screener de valores que e...
mmoren44 no esta el color azul (Fade //Blue), No aparece en las barras el color azul.
larouedegann changer fade coloured (0,0,255)
Nicolas 1. yes 2. maybe yes?! 3. why not?
patapouf Bonjour Nicolas. Je viens de découvrir cet indicateur, que je trouve bien intéressant Mais...
Nicolas Tu peux modifier le paramètre "scalefactor" pour adapter la hauteur des barres à ton graphiq...
bolsatrilera EM MONEY FLOW INDEX + ALERTS //@version=3 // on platform Tradingview by DreamsDefined //a...
Carlos Garcia Enorme. Gracias!
Andraxx Buen indicador.... Gracias
TAC Bolsa All indicators share some code of other TAC indicators that improve the functioning of this ...
ramonjp Hi Tac, Great job. Please, can you provide latest code version of this indicator without ...
Tze Khai Lim Hi Tac, pls provide latest code version of this indicator. Thanks in advance.
TAC Bolsa Estas equivocado al 99,9%. La correlación entre las series de precios y volúmenes las des...
Domenec Si hablas de un indice regional como el Ibex es posible que sea asi yo nunca lo he operado y...
TAC Bolsa Regional de Mostoles, en una cosa tienes razón mejor dejarlo aquí...
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
Niklas johansson hägglund do you now if it's possible to use this strategy with this code in tradingview also?
Alexander9 This code for metastock ?, can for amibroker . Thanks
TACBOLSA
7 years ago
luxrun Thank you so much Tac BOLSA, I can not post the picture tonight I'll try tomorrow. I loaded ...
TAC Bolsa A new version of TAC Volume HPI DIV10.4 is available. that marks the divergence In the fo...
Raymundo Buenas tardes. Como puedo descargar algunos indicadores de esta pagina ?

Top