Assign the intrabar sign, then sum the bar delta
TradingView documents this classification for its Volume Delta indicator: a close above the intrabar open gives positive volume; below gives negative volume. For equal open and close, compare with the preceding intrabar close. If that is also equal, carry forward the previous sign. Bar delta is the sum of those signed volumes.
- The volume delta indicator starts each chart bar at zero. CVD carries the accumulated result between bars in the same anchor period.
- An entire intrabar receives one sign. Trades in both directions can occur inside it, so the label cannot identify the initiating side of each trade.