Calculate the percentage before smoothing it
Greg Morris documents the formula and timed transition in his published breadth-indicator book chapter; Arthur Hill gives the explicit EMA-of-ratio form for NYSE data. Let A be daily advancing issues, D declining issues, R = A / (A + D), and E the smoothed ratio. The update is E = (2/11) × R + (9/11) × prior E. Plot 100 × E if you prefer a percentage scale.
- EMA(A) / EMA(A + D) is a different calculation when total issue counts vary. Averaging the ratios gives each session its prescribed EMA weight.
- Record the history start and seed. An initial mean of ten ratios is one seed convention; another implementation may start differently. Compare only after matching initialization or establishing sufficient warm-up.
- If either count is missing, negative, or A + D is zero, treat the observation as unavailable. Do not replace it with zero or silently assume equal participation.
| Input or operation | Required meaning |
|---|---|
| A and D | Counts of issues, not advancing volume, price change, or an accumulated A-D Line. |
| R = A / (A + D) | Unchanged issues are excluded when the feed reports them separately. |
| EMA length = 10 | Weight 2/11 on the newest daily ratio; 9/11 on the prior EMA. |
| Display scale | 0.40 and 0.615 on a decimal scale equal 40 and 61.5 on a percentage scale. |