This script is meant to only show you the most significant volume moves. The way it works is it takes the cumulative sum of the delta of the volume. You can go from current all the way to ten bars back in your delta window.
Review on what volume is: The Volume indicator measures how much of a given financial asset has traded in a specific period of time. Volume is measured by shares traded for stocks, whereas for futures, it is based on the number of contracts.