This is a simple script and is derived from OBV (On Balance Volume). While OBV will smoothen the data, Cumulative Volume will start at zero and add the trading volume on a bullish day and will subtract on a bearish day.
This tool is great to spot divergences between price and volume.