# RSI indicator

The RSI indicator, also know as the relative strength index is an oscillator developed by Wilder. It build on the idea that securities can have momentum in their prices which can be identified by rapped build ups or declines in their respective prices. As a result, the RSI indicator is used to identify overbought and oversold securities. Thus, the RSI indicator tries to generate excess returns by taking advantage or price reversals in securities.

## RSI formula

The RSI indicator is calculated as shown in the formula below. From this formula, it is clear that the RSI will always take a value between 0 and 100. When the RS is (99) the RSI equals 0 (100). From this, the RSI obtains its oscillating before. Therefore the RSI is also called the RSI oscillator. Calculation of the RS follows from the formula below. The RS (relative strength) is simply the ration of 2 exponentially weighted moving averages. The first EWMA is based on the past x upward closing days price differences. The second equals the past x downward closing price differences. In case of the RSI, the lag parameter α equals to the inverse of the x amount of lag periods. Often technical analysts use a 14-day lag period.  On days where the closing price is higher than yesterdays closing price, U equals the price difference and D equals 0. Whereas when the closing price is lower than yesterdays closing price, U equals 0 and D equals the price difference. On days without a price difference, both U and D are set to 0.  