Indicator guide

Cumulative Volume Delta (CVD) Explained

Cumulative volume delta (CVD) is a running total of volume traded at the ask minus volume traded at the bid. Each bar adds its delta to the total, showing whether aggressive buying or selling has dominated. CVD is context, not a signal, and its quality depends on the trade data your feed provides.

Trading forex and CFDs involves substantial risk of loss. Automation applies rules; it does not remove trading risk. Read our risk disclosure.

Key takeaways

What is cumulative volume delta?

Cumulative volume delta measures the imbalance between volume that traded at the ask and volume that traded at the bid within each bar. Trades at the ask are read as buying pressure, where buyers lift the offer. Trades at the bid are read as selling pressure, where sellers hit the bid. The calculation has two steps.

delta per bar = volume at the ask − volume at the bidCVD(n) = CVD(n − 1) + delta(n)

The running total is what turns delta into a line. A single bar’s delta is noisy. The cumulative line shows the direction of net flow since the point where you started the calculation, which is a setting you choose.

Example (illustrative numbers): bar 1 has 600 units at the ask and 200 at the bid, so its delta is +400 and CVD starts at +400. Bar 2 has 300 at the ask and 700 at the bid, so its delta is −400 and CVD returns to 0. Price could have moved either way on both bars. The delta only describes which side traded more.

Shows a row of bars, each labelled with a positive or negative delta, feeding a running total line below. A note marks that the calculation needs bid and ask trade data and that tick volume is only an approximation.
Concept diagram, not an app screenshot. Example values are illustrative.

How to read CVD as context

Most traders compare the CVD line with price on the same chart. The comparison is descriptive. It asks what net flow did while price moved, not what price will do next.

Divergences are easy to find after the fact and common in noisy data. Decide before you open the chart which readings you will look at, and what you will check if they appear.

Data requirements: trade side or tick volume

CVD needs to know which side of each trade was the aggressor. Exchange-traded instruments can supply that through trade-level data. Many spot forex and CFD feeds in MT5 do not expose it.

The MetaTrader 5 Volume Indicators help says that for forex, volume means the number of ticks. The Volumes help says that tick or real volume is chosen in the indicator’s parameters. A count of price changes is not a count of traded contracts.

Data sources and how far they support CVD
Data sourceWhat it containsSuitability for CVD
Exchange trades with side informationTraded volume and whether each deal was a buy or a sellClosest to the definition, where your feed provides it
Tick volume on forex and CFD feedsA count of price changes in the barApproximation only
Depth of MarketA snapshot of resting bid and ask size at each price levelNot trade flow. Useful context, but not CVD on its own

In MQL5, each tick in the MqlTick structure carries flags. TICK_FLAG_BUY and TICK_FLAG_SELL mark a tick as the result of a buy or sell deal. CopyTicks with COPY_TICKS_TRADE returns ticks where the last price or volume changed. Whether those flags are filled depends on the broker and the symbol, so test them on your own feed before you build on them.

A common approximation builds CVD from tick volume. Each bar’s volume is assigned to buying or selling by whether price closed up or down. This estimates the side of trade. It does not measure it, so label it as an approximation in your notes.

Finding or building a CVD indicator in MT5

The MetaTrader 5 Volume Indicators group lists Accumulation/Distribution, Money Flow Index, On Balance Volume and Volumes. None of these is a cumulative volume delta, so you will not find CVD in that list.

Install and attach a custom indicator in the same way as any other. The steps are in the MT5 indicators guide. Before you rely on a CVD line, work through these checks:

  1. Confirm which data the indicator reads: trade-side ticks, or tick volume with a price-direction rule.
  2. On a liquid symbol, compare a few bars with the raw tick data to see whether the numbers agree.
  3. Write down the reset point, because the CVD level depends on where the calculation starts.
  4. Forward test on demo, and keep a record of what the line showed at each decision point.

Limits of cumulative volume delta

A strategy that uses CVD needs its own tests. Backtests need the same data fields that the live strategy reads, and backtests and demo results are not proof of live results. The guide to verifying a trading bot explains what each kind of evidence can and cannot show.

Keeping a record of CVD readings

If CVD is one input among several, record the chart state at the moment you looked. Note the reset point, the data source, the timeframe and what you expected. Writing this down before the outcome is known shows what you saw, rather than what you hoped to see.

A trading journal or a simple trading journal template can hold these notes alongside your other records. Keep the entries factual, and review them by reading the data, not by remembering the result.

Frequently asked questions

Is cumulative volume delta the same as volume?

No. Volume counts how much traded. Delta subtracts the selling side from the buying side, so it shows the direction of net flow. Two bars with the same volume can have opposite deltas. CVD is the running sum of those deltas.

Does MT5 include a CVD indicator?

Not in the standard Volume Indicators group, which lists Accumulation/Distribution, Money Flow Index, On Balance Volume and Volumes. You can add a custom CVD indicator that you wrote or licensed. Check which data it reads before you rely on it.

Can CVD be used on forex?

On most MT5 forex feeds, you will only get an approximation, because the volume shown is a count of ticks. Some instruments and feeds provide trade-side data. Check the symbol and the data your indicator reads before drawing conclusions.

Is a CVD divergence a trade signal?

No. A divergence is a mismatch between price and net flow, and it is worth investigating. It does not say what price will do next, and it can persist or turn out to be a false prompt. Treat it as one piece of context next to your other evidence.

How should I test a CVD-based strategy?

Test on history with the same data fields the strategy reads, then forward test on a demo account. Keep the records of each test. Backtest and demo results are not proof of live results, so compare them with the checklist in the guide to verifying a trading bot.

Keep reading

Sources: Volume Indicators - MetaTrader 5 Help · Volumes - MetaTrader 5 Help · Price Data Structure - MQL5 Reference · CopyTicks - MQL5 Reference

Trading forex and CFDs involves substantial risk of loss. Past performance and backtests do not guarantee future results. Read our risk disclosure before you trade.