CumulativeDelta
CumulativeDelta shows the cumulative delta — the sum of the deltas of all bars since the start of the day, week, month or the whole loaded history. It shows who dominates over the session and makes divergences visible: the price rises while cumulative delta falls.
How it is calculated
The delta of each bar (market buy volume minus market sell volume, as in the Delta indicator) is added to the sum of the previous bars. At the start of a new period the sum resets to zero. The period is set by the Anchor period parameter:
- Day, Week or Month — the sum resets when a bar falls into a new calendar day, week (starting Monday) or month by the chart’s bar time;
- All bars — the sum never resets and accumulates over the whole loaded history.
The View parameter selects how it is drawn:
- Columns — the cumulative delta at the bar close, a column up from zero in the Up color if the sum is positive and down in the Down color if it is negative;
- Line — a line through the values at bar close; its color and width are set by Line color and Line width;
- Candles — a candle body from the value at the bar open (the sum before this bar) to the value at the close; the candle uses the Up color if the bar’s delta is positive and the Down color if it is negative.
Divergences
The indicator marks divergences of price and the cumulative delta at price pivots. A divergence line joins two pivots in the indicator pane and, with On the price chart, also along the candle highs (lows) on the price chart. A dot marks the later pivot of the line.
- Bearish — price made a higher high, and the cumulative delta at this pivot is lower than at the previous one.
- Bullish — price made a lower low, and the cumulative delta is higher than at the previous pivot.
- Hidden bearish — the cumulative delta made a higher high and price did not; hidden bullish — the delta made a lower low and price did not. This is a sign the move goes on. Hidden divergences are dashed and are turned on separately.
A pivot high is a bar whose high is above the highs of Pivot: bars on the left bars on the left and not below the highs of Pivot: bars on the right bars on the right; a pivot low is the same by the lows. A pivot is compared with the previous pivot of the same direction if there are from Bars between pivots, from to Bars between pivots, to bars between them and both are within one accumulation of the delta (see Anchor period; with All bars — always). The cumulative delta of a pivot is its value at the close of the pivot bar.
A divergence shows when the last of the bars on the right of the pivot closes: until then the pivot is not confirmed.
Divergence alert
With Alert on, the terminal gives an alert when the bar that confirms a divergence closes — in a hidden window too. After the history loads there are no alerts about past divergences. The alert goes to the Notifications window with the source CVD and a text like “CVD: bearish divergence — high 86 500 above 86 450, CVD +1 200 below +3 400 (pivots 16:12 and 16:37)”, and plays the sound of Alert sound (None — silent).
Parameters
| Parameter | Description | Default |
|---|---|---|
| Anchor period | When to reset the sum: Day, Week, Month or All bars. | Day |
| View | How to draw: Columns, Line or Candles. | Columns |
Style
| Parameter | Description | Default |
|---|---|---|
| Up color | Color of rising columns and candles. | Green |
| Down color | Color of falling columns and candles. | Red |
| Line color | Line color in the Line view. | Orange |
| Line width | Line width in the Line view. | 1 |
Divergences
| Parameter | Description | Default |
|---|---|---|
| Divergences | Regular divergences at price pivots: bearish and bullish (Divergences). | On |
| Hidden divergences | Hidden bearish and bullish divergences — dashed. | Off |
| Pivot: bars on the left | The pivot high is above the highs of this many bars on the left (the pivot low is below): 1 to 100. | 5 |
| Pivot: bars on the right | Price does not go beyond the pivot for this many bars after it; the divergence shows when the last of them closes: 1 to 100. | 5 |
| Bars between pivots, from | The least distance between the pivots: 1 to 1000. | 5 |
| Bars between pivots, to | The greatest distance between the pivots: from the “from” value to 1000. Pivots are compared only within one accumulation of the delta. | 60 |
| On the price chart | The divergence line is drawn on the price chart too, along the candle highs (lows). | On |
| Bullish color | The color of bullish divergences. | Green |
| Bearish color | The color of bearish divergences. | Red |
| Alert | An alert when the bar that confirms a divergence closes — in a hidden window too (Divergence alert). | Off |
| Alert sound | The sound of divergence alerts; None — silent, the Notifications window only. Shown with Alert on. | Sound 1 |
The pivot parameters, the colors and the alert are shown when regular or hidden divergences are on.
You cannot place an alert line in the CumulativeDelta area.
How to add an indicator to the chart is described in Adding an indicator; how to change its parameters, on the Indicator manager page.