1994issue C071-5
Constructing a 40-period envelope on on-balance volume
On-balance volume is a running total of signed volume. A 40-period simple moving average of that series is the envelope centerline, and the bands sit two population standard deviations above and below that average over the same lookback.
- On-balance volume is a running total of signed volume: the current volume is added when the close rises, subtracted when the close falls, and ignored when the close is unchanged.
- The envelope centerline is the 40-period simple moving average of that on-balance volume series.
- The upper and lower bands add and subtract two times the population standard deviation of on-balance volume over the same lookback.
- The moving average and both bands are first available only after 40 completed on-balance volume observations, and the same overlay can be rebuilt as a 40-period, two-deviation Bollinger study on that line.
How on-balance volume is accumulated
On-balance volume is constructed as a running total that adds the current volume when the close is above the prior close, subtracts that volume when the close is below the prior close, and adds zero when the close is unchanged.
That close-to-close comparison gives each period a signed volume: the period volume receives a positive, negative, or zero sign before it is added to the running total.
The moving-average centerline
The centerline of the envelope is a 40-period simple moving average of the on-balance volume series.
That moving average is the simple average of on-balance volume inside a fixed lookback. The lookback is the number of consecutive on-balance volume observations used to compute both the average and the deviation.
How the bands are placed
The upper band is the 40-period moving average plus two times the population standard deviation of on-balance volume over the same window. The lower band is the 40-period moving average minus two times the population standard deviation of on-balance volume over the same window.
The deviation multiple is the scalar applied to the window standard deviation to place those bands. Population standard deviation is the window dispersion measure used when the bands are built from first principles in a worksheet.
When the envelope first appears
Because the lookback is 40 completed observations, the moving average and both bands are first available only after that full window of on-balance volume values exists.
Rebuilding the same overlay
The same stack can be rebuilt by plotting on-balance volume and then applying a simple 40-period, two-deviation Bollinger band study to that line.
A scripted reconstruction takes on-balance volume as the series input, a length of 40, an upper deviation of 2 and a lower deviation of -2, then plots the upper band, lower band, average, and the on-balance volume line.
Illustrated worksheets and charts apply the same on-balance volume series with its 40-period moving average and bands as a single overlay stack.
All readings on this track · 61 readings
- 1988Cumulative volume trend and 200-session polarity
- 1988Three clocks when cumulative volume led price
- 1988Payoff index checkpoints for open interest and divergence
- 1988Relative strength, stochastics, and on-balance volume as a turning-point stack
- 1988Signing volume by open interest change
- 1988Case study: weekly on-balance volume with trendlines and a 21-period average
- 1988Combining weekly and daily MACD divergences with on-balance volume
- 1988Restoring the original tests for market breadth, on-balance volume, and trendlines
- 1989Evaluating volume-weighted breadth extremes
- 1989Demand oscillator construction with a momentum overlay
- 1989Constructing a volume percentage ratio from advance-decline flow
- 1990Constructing net positive volume as On-balance volume
- 1990Buying-share scale with on-balance volume
- 1990Friday-filtered on-balance confirmation lines
- 1991Constructing rate-market volume breadth from on-balance volume
- 1991Building a breadth composite from on-balance volume breakouts
- 1992Constructing a rate-complex volume-breadth index
- 1992Constructing a breadth index from on-balance volume
- 1992Constructing signed market thrust from issue volume
- 1992Constructing indicator phase across averages, volume and bands
- 1993Force on-balance volume to agree with itself at slower horizons
- 1993Three transforms of market thrust from breadth and volume
- 1994Constructing a tick-line momentum oscillator
- 1994Constructing a smoothed on-balance tick momentum oscillator
- 1994Histogram confirmation and a second-series veto for MACD-family alerts
- 1994Constructing a 40-period envelope on on-balance volume
- 1996Constructing a matched percent-B volume disparity
- 1997Constructing calendar regime overlays and volume-weighted rules
- 1997Constructing market thrust from breadth and volume
- 1997Constructing on-balance volume as a signed running total
- 1997A three-layer construction for a signed volume-force oscillator
- 1997Constructing a range-sum volume-force oscillator
- 1999On-balance volume confirmation, price-indicator divergence, and bounded exits
- 2000A daily long-only confirmation stack on the tether line
- 2000A three-filter tether and volume trend system
- 2003Constructing finite volume elements as a finite-period money-flow filter
- 2003Constructing on-balance volume from signed session volume
- 2003On-balance volume as a market-breadth participation ledger
- 2003Construct a volatility-adjusted on-balance volume filter before confirming a breakout
- 2004Opening and midday ranges as an on-balance-volume breakout case
- 2004Constructing a volatility-gated volume-flow measure
- 2004Constructing a volume-flow series from on-balance volume
- 2004Volume-flow indicator construction from on-balance volume
- 2004Volume-flow slope divergence, then separate on-balance-volume and crossover rules
- 2004Volume flow and band construction as one inspectable problem
- 2004Auditing advance-decline confirmation for scale, horizon, and composition
- 2005Bounded market breadth from the Arms index to BRIN
- 2006Overnight-hold entry and exit construction
- 2007Evaluating Volume-price confirmation versus On-balance volume and MACD
- 2009Volume confirmation versus a price advance
- 2010Typeahead retrieval of a moving average, on-balance volume, and a stochastic oscillator
- 2010Modified volume-price trend and log-price scale alignment
- 2010Constructing liquidity accelerometers from advance-decline averages
- 2012Failed short cycles as breadth and volume tests
- 2016Earnings straddles, implied volatility, and money-flow filters
- 2017A volume residual filter and a price projection matrix
- 2019Volume-volatility parabola and signed-volume momentum
- 2019Separating on-balance volume into breadth and volume
- 2020Constructing the obvm signal line
- 2020Constructing smoothed on-balance volume with a signal line
- 2020Keep neutrality as a first-class input in three-state market data