Define the counts and calculation order
Let H be the number of eligible issues recording a new 52-week high, L the number recording a new 52-week low, and N the total eligible issues traded for the same daily observation. Calculate R = 100 × min(H, L) / N first, then smooth R. Greg Morris describes this daily 50-day EMA formulation and distinguishes it from weekly implementations. Record the source interval, universe, extreme definition and denominator alongside the smoothing length.
- Use counts, not trading volume, the index price or the number of stocks currently loaded on a chart. Confirm whether the provider includes funds, preferred shares and other issue types.
- Confirm how the provider defines a 52-week extreme, including price adjustment and whether an intraday or closing extreme qualifies. Matching names do not prove matching methods.
- Taking the minimum after separately smoothing H and L is a different calculation. Keep the daily minimum and daily denominator inside the ratio before applying the EMA.
- For nonnegative counts with H and L no larger than N, the raw percentage lies between 0% and 100%. A tighter 50% ceiling requires an additional assumption that the two groups cannot overlap; do not impose that assumption without checking the counting convention.