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
- Delta per bar is volume at the ask minus volume at the bid. CVD is the running total of those deltas.
- A divergence between price and CVD is a prompt to investigate, not a buy or sell signal.
- Real CVD needs bid and ask trade data. On many forex and CFD feeds, MT5 offers tick volume only, so a tick-based CVD is an approximation.
- The MT5 Volume Indicators group does not include CVD. A custom indicator you wrote or licensed is the usual route.
- Check which data an indicator reads before trusting it, and record what you saw in a journal.
- CVD describes past flow. It does not predict price, and no reading guarantees a move.
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.
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.
- Confirmation: price and CVD rise together, so net aggressive buying matches the move.
- Divergence: price makes a higher high while CVD makes a lower high. Net flow did not keep pace with price. This is a prompt to look at other evidence, not an order.
- Flat CVD during a move: price travels while the running total stays near the same level. Check the session, the news calendar and the chart timeframe before reading anything into it.
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 source | What it contains | Suitability for CVD |
|---|---|---|
| Exchange trades with side information | Traded volume and whether each deal was a buy or a sell | Closest to the definition, where your feed provides it |
| Tick volume on forex and CFD feeds | A count of price changes in the bar | Approximation only |
| Depth of Market | A snapshot of resting bid and ask size at each price level | Not 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.
- A custom indicator you wrote yourself, or one you have licensed from its author. Read its documentation for the data it uses and how it treats bars with no trade data.
- A custom indicator that builds on tick data with CopyTicks, if you can write MQL5. In an indicator, CopyTicks returns the ticks available now and starts synchronising the tick history, so the full data may only arrive on a later call. Check that the history is complete before you trust the line.
- Only use indicators you wrote, bought or licensed. Do not use copied or modified versions of paid products.
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:
- Confirm which data the indicator reads: trade-side ticks, or tick volume with a price-direction rule.
- On a liquid symbol, compare a few bars with the raw tick data to see whether the numbers agree.
- Write down the reset point, because the CVD level depends on where the calculation starts.
- Forward test on demo, and keep a record of what the line showed at each decision point.
Limits of cumulative volume delta
- Start point dependence. The level of CVD is arbitrary. Two charts reset at different bars show different totals and different divergences.
- Data quality. Missing ticks, feed gaps and tick-volume approximations all change the line, often without any visible warning.
- Context dependence. Large delta can come from news, session opens or a thin market, not from one group of traders with a clear intent.
- No predictive guarantee. CVD does not forecast price. It cannot tell you whether a move will continue or reverse.
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.