Skip to main content
Track Weighted moving average
7 / 20
Library

1992issue C111-2

Constructing a weighted-average TRIN10 with Bollinger envelopes

The finished breadth series starts as an open-trin10 ratio of averaged advancing and declining issues over averaged advancing and declining volume. That open ratio is centered with a midpoint-average, bounded by a bollinger-envelope two population standard deviations above and below that midpoint, restated as a band-normalized-reading on a 0-to-100 scale, and then passed through a five-day-weighted-average.

  • The open-trin10 is a 10-session breadth ratio that first averages advancing and declining issues, then divides that issue ratio by the matching 10-session volume-average ratio.
  • Envelope width is the population-standard-deviation of the open-trin10 window itself, not the dispersion of the midpoint-average.
  • Each open-trin10 value is restated as a band-normalized-reading between the upper and lower bollinger-envelope bounds before any recency weighting is applied.
  • The finished series is a five-day-weighted-average of the latest five normalized readings, using descending integer weights that sum to 15.
Entries in this reading3 entries

What this construction produces

This article walks through a historical market-breadth construction. The workflow builds an open-trin10, places that open ratio inside a bollinger-envelope, converts the location to a band-normalized-reading, and only then applies a five-day-weighted-average.

The open-trin10 is a 10-session breadth ratio built from averaged advancing and declining issues in the issue path and averaged advancing and declining volume in the volume path. Later steps do not replace that ratio. They locate it and then smooth the located reading.

Stage one: form the open ratio

The open-trin10 is formed by dividing the 10-session average of advancing issues by the 10-session average of declining issues, then dividing that result by the matching 10-session volume-average ratio.

The volume path uses the same lookback: a 10-session average of advancing volume over a 10-session average of declining volume. Both paths are averaged before they enter the ratio, and that open-trin10 series is the input to every later stage.

Stage two: draw the envelopes

A midpoint-average is then taken as a second 10-session simple moving average of the open-trin10 series. That midpoint-average is the centerline of the envelopes.

Envelope width is the population-standard-deviation of the open-trin10 values. It is not the standard deviation of the midpoint-average. Dispersion is taken across the open-ratio window itself and is used only to set envelope width.

The bollinger-envelope is the pair of bounds placed two population standard deviations above and below the 10-session midpoint of the open ratio. The upper envelope equals the midpoint-average plus two population standard deviations. The lower envelope equals that midpoint-average minus two population standard deviations.

Open TRIN10 with 10-day Bollinger envelopes

Open TRIN10, the 10-day averaged advance-decline and volume ratio from the sidebar worksheet, climbs from 0.87 just after the mid-August 1990 break toward 1.16, then eases back near 1.02. The last four sessions also carry the 10-day midpoint and the plus-or-minus two population-sigma envelopes later used to put the reading on a 0-to-100 scale.
Open TRIN10, the 10-day averaged advance-decline and volume ratio from the sidebar worksheet, climbs from 0.87 just after the mid-August 1990 break toward 1.16, then eases back near 1.02. The last four sessions also carry the 10-day midpoint and the plus-or-minus two population-sigma envelopes later used to put the reading on a 0-to-100 scale.NYSE advancing and declining issues and volume, tabulated beside the S&P 500 · daily · 1990-08-17T00:00:00.000Z to 1990-09-06T00:00:00.000Z

Open TRIN10 uses 10-day simple averages of advancing issues, declining issues, advancing volume and declining volume. The envelopes are the 10-day mean of Open TRIN10 plus or minus two population standard deviations of Open TRIN10, not of the mean.

Stage three: normalize, then smooth

The open-trin10 is then mapped onto a 0-to-100 scale as a band-normalized-reading. The reading equals 100 times the gap from the upper envelope to the current open-trin10, divided by the full gap between the upper and lower envelopes.

The finished series is a five-day-weighted-average of those band-normalized-readings. The smoother uses descending weights 5, 4, 3, 2, and 1, divided by 15. That recency-weighted average is applied only after the open-trin10 has been placed on the envelope scale.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
7 of 20 in the Weighted moving average track
19921-10 pp.Next on Weighted moving averageConstructing a banded weighted open-TRIN oscillatorAveraging advancing issues, declining issues, up volume, and down volume first, then forming the ratio, is the construction used so isolated extreme sessions pull less on the open-TRIN series.
All readings on this track · 20 readings
  1. 1988Indicator smoothing: lookback, weight, and scale
  2. 1990Recency weighting in simple, linear, and exponential moving averages
  3. 1990Seed and recurrence construction for moving averages
  4. 1990Constructing a five-day step-weighted moving average
  5. 1992Constructing simple, weighted, and exponential moving averages
  6. 1992Constructing moving averages with weighting schemes and extra filters
  7. 1992Constructing a weighted-average TRIN10 with Bollinger envelopes
  8. 1992Constructing a banded weighted open-TRIN oscillator
  9. 1993Evaluating a weighted dual rate-of-change momentum filter
  10. 1993Constructing equal, linear and exponential moving averages
  11. 1993Constructing a general weighted moving average from one exponent
  12. 1993Calibrating the weighted-moving-average exponent
  13. 1993Constructing an exponent-weighted average of put-call ratios
  14. 1994Cycle-tuned momentum with spectral peaks
  15. 1999How a five-bar sine-weighted average is assembled
  16. 2003Same-scale trend filter from a rolling least-squares endpoint
  17. 2003How a rolling linear-regression endpoint is assembled as a moving-trend
  18. 2004Constructing a volume-weighted moving average as a forecast baseline
  19. 2005Constructing a move, volume and recency weighted average
  20. 2016MACD as a zero-line filter with dual moving averages
All 24 readings tagged Weighted moving average
Also on Weighted moving average5 readings