Relative Strength Index - Calculation

Calculation

For each trading period an upward change U or downward change D is calculated. Up periods are characterized by the close being higher than the previous close:

Conversely, a down period is characterized by the close being lower than the previous period's (note that D is nonetheless a positive number),

If the last close is the same as the previous, both U and D are zero. The average U and D are calculated using an n-period exponential moving average (EMA) in the AIQ version (but with an equal-weighted moving average in Wilder's original version). The ratio of these averages is the relative strength or relative strength factor:

If the average of D values is zero, then the RSI value is defined as 100.

The relative strength factor is then converted to a relative strength index between 0 and 100:

The exponential moving averages should be appropriately initialized with a simple average using the first n values in the price series.

Read more about this topic:  Relative Strength Index

Famous quotes containing the word calculation:

    Common sense is the measure of the possible; it is composed of experience and prevision; it is calculation appled to life.
    Henri-Frédéric Amiel (1821–1881)

    “To my thinking” boomed the Professor, begging the question as usual, “the greatest triumph of the human mind was the calculation of Neptune from the observed vagaries of the orbit of Uranus.”
    “And yours,” said the P.B.
    Samuel Beckett (1906–1989)