Contact support

Reset CVD using a trading hours template

Use Session Reset using Trading Hours to start a new cumulative volume delta (CVD) total when the data crosses into or out of a session. Clear the setting to carry one total across both boundaries.

Set the session window

  1. On your NinjaTrader chart, press Ctrl+I. Select Cumulative Volume Delta under Configured.
  2. Under 1. Configuration, select Session Reset using Trading Hours. This setting is on by default.
  3. Set Trading Hours Template to the session you want to measure. The default is CME US Index Futures RTH.
  4. Select OK. Compare the CVD readings on either side of the session boundary.
CVD configuration with Session Reset using Trading Hours checked and CME US Index Futures RTH selected.
This setup checks the timestamps of one-minute calculation bars against the regular trading hours window.

What happens at a boundary

The indicator reads the start and end times from the first session interval in the template and converts them to the NinjaTrader time zone. The start time counts as inside the window. The end time counts as outside. An overnight window continues across midnight. If start and end are the same, the indicator treats the whole day as inside.

When a calculation timestamp moves from outside to inside, or from inside to outside, the indicator clears the total and sets the previous volume direction to positive. It then processes the current update. The first reading after a reset can therefore be above or below zero. The indicator continues counting volume outside the session if the chart supplies those data.

For example, suppose CVD is +500 just before the session ends. The first outside bar contributes −40. With the reset enabled, its reading is −40. With the reset cleared, its reading is +460.

If the total carries over

Check that your loaded data includes calculation bars on both sides of the boundary. A chart that supplies only in-session bars can go from one trading day to the next without an outside timestamp. A change of calendar date alone does not trigger a reset.

For a continuous total, clear Session Reset using Trading Hours and select OK. The total then depends on how much history you load. Use the same loaded history when comparing two charts.