Glossary
Relative Strength Index
An oscillator between 0 and 100 that compares the average size of recent gains with the average size of recent losses. J. Welles Wilder introduced it in 1978.
The RSI is 100 - 100 / (1 + RS), where RS is the average gain divided by the average loss over n periods, usually 14, smoothed as avg_new = (avg_old x 13 + current) / 14.
It describes recent price changes. The conventional 30 and 70 lines are labels, and a trending price can stay beyond them for a long time.
Example: an average gain of 0.30 and an average loss of 0.10 give RS = 3 and an RSI of 100 - 100 / 4, or 75.