Calculate two-period RSI from completed daily closes
For Wilder’s RSI, split each close-to-close move into a positive gain or a positive loss. Seed the gain and loss averages with the first two changes. Then average each previous smoothed value with the latest gain or loss. For length 2, both inputs have a weight of one half. Earlier prices still contribute through the previous smoothed values.
Before A, the qualifying chart’s smoothed gain is about 0.066040 and its smoothed loss is about 0.688232. A closes at 6,004.00 after a 6,007.75 close, so the new gain input is zero and the loss input is 3.75. That brings the averages to about 0.033020 and 2.219116. Calculate 100 × 0.033020 ÷ (0.033020 + 2.219116) to get RSI(2) ≈ 1.47.
On a daily chart, set the Relative Strength Index length to 2 and source to Close. Add simple moving averages of 200 and 5 periods. Use the raw RSI line for the threshold check. A smoothed RSI overlay or a rounded display can give a different answer near 5. An exact reading of 5 does not satisfy a below-5 rule.
