The formula and the unchanged-close fork
Let C be the current close, Cprev the previous close, V the current nonnegative volume, and n the EMA length. The May 2011 TASC implementations use the same-period exponential averages for signed and total volume. Their flat-close conventions differ: AIQ assigns negative volume at equality; TradeStation uses the sign of the close change.
- With paired seeds and nonnegative volume, |VP| cannot exceed TV, so the ratio stays between −100 and +100. This bound need not hold if a variant mixes different smoothers or weights.
- The ratio is not an EMA of the per-bar signed percentage. For example, a large down-volume bar must carry more weight than a small up-volume bar.
- Under the negative-flat convention, define U and D as the identically smoothed positive and negative volume buckets. VZO = 100 × (U − D)/(U + D). Thus +40 corresponds to 70% in U and 30% in D, not a 40% chance of a price rise. Neutral-flat volume adds a third bucket, changing that interpretation.
| Stage | Calculation | Check |
|---|---|---|
| Signed volume R | +V when C > Cprev; otherwise −V | This page defaults to the negative-flat convention. |
| Neutral-flat alternative | +V when C > Cprev; −V when C < Cprev; 0 at equality | The denominator still includes the flat bar volume. |
| EMA state | a = 2 / (n + 1); Enew = a × input + (1 − a) × Eprev | Update VP from R and TV from V with identical weights. |
| VZO | 100 × VP / TV, provided TV > 0 | Divide after smoothing both series. |