Relative Strength Index (RSI)
A momentum indicator that measures the speed and magnitude of the recent price changes of an asset, to determine if it has been overbought or oversold.
RSI is considered one of the most popular oscillators. It is a momentum indicator that measures the speed and magnitude of the recent price changes of an asset, to determine if it has been overbought or oversold.
Trading application
RSI shows values between 0 and 100, with 0 being the highest oversold conditions and 100 the highest overbought conditions. In common interpretations, if RSI shows values over 70, the indicator suggests the asset is overbought, while values under 30 suggest oversold conditions.
Divergences also reflect bullish or bearish conditions: we can consider it bearish if the asset’s price increases more than the RSI (e.g. reaching a new high while the indicator doesn’t), in the same way that it would be bullish to see the asset’s price decreasing more than the RSI does.
Calculation
RS = Average gain of periods which ended in profit / Average loss of periods which ended in loss
Note: Number of periods is generally set in 14.
Parameters
Input Parameters
Name | Type | Range of value | Description |
| int | <1, int.MaxValue> | Number of bars used in the calculation. |
Output Parameters
Indicator ouptuts a single value.
Type | Range of value |
double | (0, double.MaxValue) |
Examples
Complete example
Last updated